Disable Zoom (Not Hide) On Product Image On Mobile Dawn Theme 11.0

Topic summary

A user needs to disable the zoom feature on product images for mobile devices in Shopify’s Dawn theme version 11.0.

Initial Solution Attempts:

  • A CSS code snippet was provided to add to the Custom CSS of the Product information section, targeting media queries for mobile viewports (max-width: 767px)
  • The code hides zoom-related elements like .product__media-icon--lightbox and .product__media-toggle::after
  • An updated version with !important flag was suggested when the first attempt didn’t work

Root Cause Identified:

  • After testing on the user’s store, it was discovered the zoom was actually a device-level function, not a theme feature
  • Browser cache was initially suspected, with suggestions to check in incognito mode

Final Solution:

  • To disable device-level zoom, add specific markup code to the theme.liquid file after the <head> tag
  • The code uses conditional logic to target only product template pages

Confirmation:

  • Another user confirmed this solution worked well for adjusting zoom size on mobile in the free Taste theme, applying it via the product template’s custom CSS field
Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

Need to disable zooming feature in product page in mobile, if possible need to disable on every page shopify Dawn theme 11.

Hi @basically

You can do that by adding this CSS code to Custom CSS of Product information section in your product template

@media (max-width: 767px) {
  .product__media-toggle:after,
  .product__media-icon--lightbox {
    display: none;
  }
}

Seems not working :thinking:

If you don’t mind, can you share your store link so I can check?

Or please update code to this

@media (max-width: 767px) {
  .product__media-toggle:after,
  .product__media-icon--lightbox {
    display: none !important;
  }
}
1 Like

https://thebasically.in/products/the-everyday-tshirt-supima%C2%AE

Image zoom is disabled as I have checked on my side. Did you try to reload your page to check after adding the code?

Yes, it’s still there for me…is it because of the browser? im using chrome.

You checked on mobile only right? what device?

I have checked both on mobile, chrome, safari browsers. Please try to use Incognito browser and check again

Please check attached screen recording file.

This is zoom function of device, not zoom function of theme. If you want to remove this, please add this code to your theme.liquid file after tag

{%- if template.name == 'product' -%}

{%- endif -%}

Thanks! This code worked very wel for me to adjust the zoom size on mobile. I pasted the code in the custom css field of the product template. I am using the free shopify Taste theme.