Blog · How-to

Is your store blocking zoom on phones? Check it in 30 seconds

Pinch-to-zoom is how many people with low vision read a phone screen. A single line in your page head can switch it off.

By Avanciq · Published · General information, not legal advice

Many people with low vision read a phone by pinching to zoom. One setting in a page’s code can stop that. In our check of 1,000 Shopify homepages, 6.9% blocked zoom on phones (95% CI 5.5–8.6%).

It is rare on Shopify’s own themes (0.5% of homepages on the Dawn family) and much more common on themes from other makers or custom themes (17.5%, 95% CI 14.0–21.7%). When we reviewed 19 flagged pages by hand, none were false alarms.

Check it in 30 seconds

  1. Open your homepage on your phone.
  2. Put two fingers on the page and spread them apart.
  3. If the page does not get bigger, zoom may be blocked.

Careful: iPhones often let you zoom even when the code blocks it, so a page that zooms on an iPhone is not proof. Other phones follow the code.

For a certain answer, use the instant check. It reads the page code and tells you if the viewport setting blocks zoom.

What causes it

Every mobile page has a viewport meta tag in its head. This version is fine:

<meta name="viewport" content="width=device-width, initial-scale=1">

These settings block or limit zoom:

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

In our count, a page is marked as blocking zoom if it sets user-scalable=no (or 0) or a maximum-scale below 2. The reasoning is in WCAG 1.4.4, Resize text: people should be able to enlarge text up to 200% without losing content.

Fix it on Shopify

  1. In Shopify admin, open Online Store > Themes. On the theme, choose Duplicate first so you have a safe copy.
  2. On the copy, choose Edit code and open layout/theme.liquid.
  3. Find the line that starts <meta name="viewport". (Some themes add it from a snippet that theme.liquid renders.)
  4. Delete maximum-scale=1 (or any maximum-scale below 2) and user-scalable=no so it reads width=device-width, initial-scale=1.
  5. Save, preview the copy on your phone, and pinch to zoom. Publish when it works.

Because it lives in one file, one change fixes every page on the store.

Fix it on WordPress

On a classic theme, look in header.php (Appearance > Theme File Editor, ideally in a child theme, with a backup first) for the same viewport line and make the same edit. Block themes have no header.php: there, look in the theme’s templates or ask whoever built it. Some themes and page builders add the setting from a theme option instead, so search the theme’s settings for “zoom” or “viewport” first. If you use our free WordPress plugin, it flags the same barrier.

Who this affects

Zoom matters to people with low vision, but also to anyone reading small print on a small screen: older shoppers, people in bright sunlight, people without their glasses. Blocking zoom takes away a tool that costs the shopper nothing to use. Unlike many barriers, it is also one of the cheapest to remove: one line in one file, with no design change.

How to confirm the fix worked

After you publish, reload the page on your phone and pinch. Then run the instant check again: the zoom item should be gone from the list. If you use a page builder or an app that injects its own viewport tag, check the live page as well as the theme file, because the live page is what visitors get.

A note on the “why”

Developers sometimes block zoom to stop a layout jumping when a form field is tapped. Better fixes exist, such as a font size of 16px or larger on form fields. The cost of blocking zoom lands on the people who need it most.

Full numbers and method: the research page. This is general information, not legal advice.

Check your own homepage in under a minute

Type your homepage address and see the definite accessibility mistakes on screen, with who each affects and how to fix it. No card, no sign-up.

Run the instant check

Want every key page reviewed by our team, with the fix for each one? There is also a 5-page check for US$299.

Questions

How do I know if my website blocks zoom on phones?

Open it on your phone and spread two fingers on the page. If nothing grows, zoom may be blocked. The instant check confirms it from the page code.

What code blocks zoom?

A viewport meta tag with user-scalable=no (or 0) or a maximum-scale below 2.

Where is the viewport tag on Shopify?

In layout/theme.liquid, inside the head of the theme.

Will removing it break my layout?

Usually not. Preview the change on a duplicated theme first and pinch to zoom on a phone before you publish.

Keep reading