Checklist Guide

Pinch Zoom Blocked on a Practice Phone Page and Why Lighthouse Flags It

Short answer

If your page cannot be pinched larger on a phone, the viewport setting in the page code is probably telling the browser to disable zoom. Remove that restriction. Patients with low vision rely on zoom to read hours and phone numbers, and Lighthouse and axe both flag its removal.

By Gio LaRocheUpdated 5 min read
Get my free auditor call (561) 291-2681

The one-line setting that blocks zoom

Every mobile page carries a small line in its code called the viewport tag. It tells the phone browser how wide to draw the page. Some templates add extra words to it that switch off pinch zoom, usually to stop the screen jumping when a visitor double-taps. The side effect is that a patient with low vision cannot enlarge your phone number or your hours.

That is a quiet failure. The page looks fine to everyone who can read it at normal size, and the people it shuts out do not complain; they leave.

What the standards and tools say

The W3C Resize Text criterion, which we read, asks that text can be resized without assistive technology up to 200 percent without loss of content or function. It says scaling is mainly the browser's job, and the author's job is to avoid preventing the browser from scaling the content. It lists a test rule named Meta viewport allows for zoom.

Two tools check the same thing. Chrome's Lighthouse accessibility score includes an audit that user-scalable is not set to no in the viewport tag and that the maximum scale is not less than 5, with a weight of 10, which is among its higher weights. The axe-core rule from Deque, titled Zooming and scaling must not be disabled, is stricter in a different way: it requires that the maximum scale is not less than 2, and it rates the user impact as critical, naming low vision as the group affected.

Viewport settingZoom allowed?
width=device-width, initial-scale=1Yes, nothing blocks it
Adds user-scalable=noNo, flagged by Lighthouse and axe
Adds maximum-scale=1No, the page cannot be enlarged
Adds maximum-scale=5 or largerYes, passes the Lighthouse limit

Who uses zoom, and what blocking it costs

Pinch zoom is not only for people with a diagnosed vision condition. Older patients, people who left their glasses at home and anyone reading a phone in glare all enlarge a page to read hours, an address or a phone number. When the page refuses to grow, they squint, guess a digit or leave. That is a lead lost over one line of code, and removing the restriction costs nothing.

How to check and fix it

  1. 1On your phone, open your home page and spread two fingers on the text. It should grow.
  2. 2On a desktop, open the page in Chrome, right-click and choose View page source, then search for viewport.
  3. 3Read the line. If it contains user-scalable=no or a maximum-scale below 5, zoom is limited.
  4. 4Ask your developer or theme settings to remove those words and keep only the width and initial scale parts.
  5. 5Re-test on the phone, then run the Lighthouse accessibility audit and confirm the viewport item passes.

If the page jumps when zoomed

Usually a designer blocks zoom because the layout breaks when enlarged. The right fix is the layout, not the block. Our guide to zoomed text and phone reflow shows how to make a page behave when it is enlarged, and the guide to tap target size covers the call button.

Lighthouse is a good routine check, and we describe a monthly version in the Lighthouse accessibility check guide. A passing audit is a hint, not proof, and we do not give legal advice.

Frequently asked questions

Why would a designer block zoom on purpose?

Usually to prevent a layout jump on double-tap, or because a page looked broken when enlarged. Neither is a good reason to remove zoom for everyone. The better fix is a layout that holds up when enlarged, which a developer can test in minutes.

Can a patient turn zoom back on?

Some phones let a visitor force zoom through accessibility settings, but a visitor should not need to know that. The W3C says the author's job is to avoid preventing the browser from scaling. Treat the page as the problem, not the visitor.

Why does Lighthouse say 5 and axe say 2?

They are different tools with different thresholds. Lighthouse lists a maximum scale of not less than 5, and the axe rule asks for not less than 2. The simplest path is to remove the maximum-scale and user-scalable words entirely, which satisfies both.

Does allowing zoom hurt how the page loads?

No. The viewport tag only governs how a visitor can scale the page after it loads. Removing the restriction has no effect on speed. It does expose any layout that cannot cope with being enlarged, which is worth knowing.

How often should I check this?

Check after any theme change or redesign, since a new theme can reintroduce the setting. A ten-second two-finger test on your phone, repeated on the home page, the contact page and one service page, is enough.

Sources

Keep reading

Ready to Grow Your Practice?

Primara is now accepting new independent practices nationwide. Most new engagements begin within one week.

Send Us a Message

We respond within one business day.

* Required field

We'll call to confirm your consultation.

No spam, ever. HIPAA-aware agency. We respond within one business day. For urgent inquiries, call (561) 291-2681.

Founder-LedHIPAA-AwareServing Practices Nationwide