How to display variant images only when selected on product page?

Hello,
I have a problem with my variant images on the product page. The images are displayed although no variant is selected. This leads to endless scrolling.
I want the variant images to be displayed only when the variant is selected.

Can someone help please?

2 Likes