Skip to main content

"Zooming and scaling must not be disabled": how to let people pinch to zoom

Published · Updated

“Zooming and scaling must not be disabled” is the error you’ll see in axe. Lighthouse flags the same thing with a long message about [user-scalable="no"] and [maximum-scale], and the Tabwise scan calls it “Zooming is disabled on mobile”. They all mean the same thing.

Some websites stop you pinching to zoom on your phone. It’s done with one line of code, often a setting called user-scalable=no. It’s an accessibility problem that’s easy to miss if your own eyesight is good.

Nearly one in five Irish business websites we tested (18% of 6,576) had zoom turned off. It was 17% of local services and 19% of online shops.

Who this affects

Older customers and anyone with low vision pinch to zoom all the time. It’s how they read small print, check a price or look closely at a product photo.

When zoom is off, they’re stuck. Picture someone trying to read the opening hours of a hardware shop on their phone, in the car park, without their glasses. If they can’t zoom, they’ll probably ring someone else.

Why it happens on so many sites

Some themes turn zoom off on purpose, to make a website feel more like an app. Others do it to stop phones zooming in by themselves when you tap into a form.

Either way, it’s usually a theme decision, not something you chose.

How to fix it

The fix is one line in your website’s code. The hard part is finding it.

Shopify

The line is usually in your theme’s main layout file, called theme.liquid. From your Shopify admin, go to Online Store, then use the theme’s menu to choose Edit code. Shopify’s guide to editing theme code shows where.

Duplicate your theme first, so you have a backup. If you’re not comfortable editing code, send the message below to your theme’s developer.

WordPress and WooCommerce

The line usually comes from your theme, and sometimes from a plugin. In older themes it’s often in a file called header.php.

Don’t edit theme files directly. A theme update will undo your change. Ask your web developer, or the theme’s developer, to fix it properly.

Wix and Squarespace

Wix and Squarespace normally write this part of the page themselves, so there’s usually no line for you to edit. Test zoom on your phone. If it doesn’t work, contact their support team and tell them.

If someone else built your site

Copy this and send it to your web person:

Our website stops people zooming in on mobile, which fails WCAG 2.1 AA (success criterion 1.4.4). Can you remove maximum-scale and user-scalable=no from the viewport meta tag, and check that nothing else blocks pinch-zoom?

How to check it’s fixed

Open your website on your phone and pinch to zoom. If the page gets bigger, you’re sorted. Try it on an Android phone if you can, because iPhones usually let you zoom even when a website tries to stop it.

Then run our free scan to confirm. While you’re at it, our guide to hard-to-read text covers the other big reason people struggle to read websites on a phone.

For your web developer

The rule is WCAG 2.1 success criterion 1.4.4, Resize Text. axe reports this as meta-viewport. MDN’s page on the viewport meta tag explains each setting.

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

<!-- After -->
<meta name="viewport" content="width=device-width, initial-scale=1">
  • Remove user-scalable=no (or 0) and any maximum-scale below 2. axe’s own rule fails anything under 2, so simply leaving it out is safest.
  • If zoom was turned off to stop iOS zooming into form fields, fix the cause instead: give inputs a font size of at least 16px.
  • Check the theme and any plugins or apps that inject their own viewport tag.

Check your own website for free

We'll scan your homepage and a few key pages and email you a plain-English report in minutes.

Free Report by email in minutes Privacy