How do I change the code so that my mobile only shows a certain images per variant?

New Member
1 0 0

I changed the code for my main product page for the website and it works great. Every variant I choose pushes a certain few images that I want for it, but whenever I go to the mobile website and look all the images are there and it's in a swipe form. I was wondering how I get certain images to show up on the mobile version. Thank you.