Fix guides · Accessibility
How to fix the viewport meta tag (zoom disabled or not optimized for mobile)
One line in your page's <head> controls how phones size the page and whether visitors can zoom. How to fix it on Shopify, WordPress, Webflow, Wix, Squarespace and Next.js.
- Time to fix
- 5–15 minutes
- Skill needed
- Copy and paste
- Who notices
- Visitors with low vision, and everyone tapping on a phone
Why it matters
The viewport meta tag tells phones to fit the page to the screen. Without it, phones show a shrunken desktop layout and can delay taps by up to 300 ms.
Some sites add maximum-scale=1 or user-scalable=no to stop zooming. People with low vision rely on pinch-to-zoom to read, so blocking it is an accessibility failure.
“Tap interactions may be delayed by up to 300 milliseconds if the viewport is not optimized for mobile.”
Before you start
- The correct tag is short: width=device-width, initial-scale=1. Nothing else is needed.
- Remove maximum-scale and user-scalable=no (or user-scalable=0). If they were added to stop iPhones zooming into form fields, set form text to at least 16px instead.
Fix it on your platform
Shopify
- In your theme code (Online Store → Themes → ⋯ → Edit code), open layout/theme.liquid and find <meta name="viewport".
- Shopify's accessibility guidance for themes says viewport zoom must stay enabled, without maximum-scale or user-scalable="no". Replace the tag with the one below.
<meta name="viewport" content="width=device-width, initial-scale=1">WordPress
- The viewport tag comes from your theme (usually header.php) or a plugin. Search the theme files for "viewport".
- Edit it in a child theme, or ask the theme developer, so the change survives updates. Some mobile or app-style plugins also add their own tag.
Webflow
- Webflow adds a correct viewport tag itself. If zoom is blocked, check your site and page custom code for a second viewport tag and remove it.
Wix Managed by the platform
- Wix sets the viewport tag for you. If it's flagged, check your Custom Code settings for a viewport tag you added and remove it.
Squarespace Managed by the platform
- Squarespace sets the viewport tag for you. If it's flagged, check code injection for a viewport tag you added and remove it.
Next.js
- Next.js adds width=device-width, initial-scale=1 to every page by default.
- If zoom is blocked, look for maximumScale or userScalable in an exported viewport object (generateViewport) and remove them.
import type { Viewport } from "next";
export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
};Any other site
- Put this tag in the <head> of every page, and remove any other viewport tag.
<meta name="viewport" content="width=device-width, initial-scale=1">“Disabling scaling takes away user agency to define what works best for them.”
Check that it's fixed
- View your page source and search for "viewport": there should be exactly one tag, without maximum-scale or user-scalable.
- On a phone, pinch to zoom: the page should enlarge.
- Re-run your StudioLNC audit: the issue should be gone.
Find every issue like this on your site
Free audit of performance, accessibility, SEO and security, with fixes for your platform.