I have a few videos on my store that work great with 100% width on mobile but not on desktop. They start to get blurry and I want to decrease their width to 50%. They are located on specific product descriptions.
I think I need to use media queries in order to change the width only on desktop but I’m not a coder and I have no idea where to place the code to only change individual videos on a product page.
So
What code should I use?
Where should I put the code to change an individual video on a product page?
Also, I’m using the following code directly in the description to insert the video and add loop+autoplay (it works). I would like to keep this added to the video when the width of the video on desktop is changed.
That’s for PC only. You may change the max-width & width value to fit your needs.
If you have other videos with different width, you may change the class name (like my_product_video_1, my_product_video_2, and my_product_video_3) and add the class value on the CSS file.