On this page
What this issue is
The viewport meta tag is one line of HTML in the <head> of a page. It tells a mobile browser how wide to make the page and how far to zoom in at first. Without it, most mobile browsers assume a desktop width of around 980 pixels and scale the whole page down to fit the screen.
<meta name="viewport" content="width=device-width, initial-scale=1">Why it costs you leads or sales
Most visitors to a marketing site arrive on a phone. If your page loads zoomed out, they must pinch and scroll sideways to read it. Form fields, add to cart buttons and phone links become small targets, and many people leave instead of struggling.
- Ad or search clickVisitor taps on a phone
- Page loadsBrowser renders at about 980px wide
- Visitor reads and tapsTiny text, hard to tap buttons
- Form or checkoutNever reached by many visitors
The page loads, but the mobile experience fails before the visitor can act.
Example: illustrative numbers only, showing how a shrunken mobile page can lower the share of mobile visitors who finish a form.
How to check if your site has it
Open it on a real phone
If the page looks like a miniature desktop site and you have to pinch to zoom, the tag is likely missing.
View the page source
On desktop, right-click the page, choose View page source, and search for
name="viewport". If nothing is found inside the head, it is missing.Run Lighthouse
In Chrome, open DevTools, go to the Lighthouse tab, run a Mobile audit and look for the failed item 'Has a <meta name="viewport"> tag with width or initial-scale'.
Test several templates
Check the home page, a landing page, a blog post, a product page and the checkout. A custom template can lack the tag while the rest have it.
How to fix it
The tag must sit inside <head>, on every page template. Most modern themes and builders include it already, so a missing tag usually points to a custom or very old theme, a stripped-down template or a bad edit.
Open header.php
Go to Appearance > Theme File Editor (or use a child theme) and open header.php. Do not edit a theme that updates automatically without a child theme.
Add the tag in the head
Paste the viewport line before
<?php wp_head(); ?>. Block themes: edit the template in the Site Editor or add it through a child theme.Clear caches
Purge your caching plugin and any CDN so the new head is served.
Open theme code
Go to Online Store > Themes > Edit code and open layout/theme.liquid.
Add the tag
Paste the viewport line inside
<head>, then save. Check for a duplicate first by searching the file for 'viewport'.
Check project settings
Webflow adds the viewport tag automatically to published pages. If it is missing, look for custom code in Project Settings > Custom Code that overrides the head, and republish the site.
Use a responsive editor
Wix adds the tag itself. If a page lacks it, check that it is not a custom embed or an iframe-only page, and republish. Custom head code can be added via Settings > Custom Code.
Check the template
Squarespace includes the tag by default. If you have injected code or a custom template, remove conflicting head code under Settings > Advanced > Code Injection and republish.
Edit your shared layout
Add the tag to the head of your base layout or template so every page gets it, rather than editing pages one by one.
Keep it simple
Use width=device-width, initial-scale=1. Avoid user-scalable=no or maximum-scale=1, which block zooming and harm accessibility.
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Your page title</title>
</head>No viewport tag
- Page drawn at desktop width, then shrunk
- Text too small to read
- Buttons and form fields hard to tap
- Responsive CSS may not apply
With viewport tag
- Page matches the phone's real width
- Readable text without zooming
- Layout adapts to small screens
- Forms and buttons easy to use
How to confirm it's fixed
- View source shows exactly one viewport meta tag in the head
- Page opens at readable size on a real phone with no sideways scrolling
- Lighthouse Mobile audit passes the viewport check
- Home page, landing pages, blog posts and checkout all pass
- Caching plugin and CDN were purged before testing
How to prevent it happening again
Put the tag in one shared layout file so every new page inherits it. After a theme change, a redesign or a page builder switch, test one page of each template on a phone. If you use a staging site, run Lighthouse there before you publish.
How FunnelGuard handles this
FunnelGuard does not check for a missing viewport meta tag today. It is a possible future check. What it does cover nearby is your real customer journeys: a robot visitor runs your lead forms, checkouts and booking or chat buttons on a schedule, checks each step and the tracking hits, and sends one alert with a screenshot if a step fails.
Day 1
A custom theme or template is launched without the viewport tag.
Week 1
Mobile visitors see a shrunken page and bounce more.
Week 3
A Lighthouse audit or a phone test exposes the missing tag.
Same day
One line is added to the shared layout and caches are cleared.
Questions people ask
Why does my website look tiny on mobile?
The most common cause is a missing viewport meta tag. Without it, phones render the page at about 980 pixels wide and shrink it to fit. Add <meta name="viewport" content="width=device-width, initial-scale=1"> to the head.
What is the viewport meta tag?
It is a line of HTML in the head of a page that tells mobile browsers to use the device's real width and a starting zoom of 100%. It lets responsive layouts work on phones.
How do I add a viewport meta tag?
Paste <meta name="viewport" content="width=device-width, initial-scale=1"> inside the <head> of your base layout. On WordPress that is header.php, on Shopify layout/theme.liquid. Website builders like Webflow, Wix and Squarespace add it automatically.
Does a missing viewport tag affect SEO?
Yes, it can. Google uses the mobile version of a page for indexing, and Lighthouse flags the missing tag. A page that is hard to use on a phone also tends to lose visitors, which hurts results.
What viewport value should I use?
Use width=device-width, initial-scale=1. It works for almost every site. Avoid user-scalable=no and maximum-scale=1, which stop people zooming.
How do I check if my viewport tag is missing?
View the page source and search for name="viewport", or run a Lighthouse mobile audit in Chrome DevTools. Also open the page on a real phone and see whether it looks like a shrunken desktop site.
Does FunnelGuard detect a missing viewport tag?
No. FunnelGuard does not check this yet; it is a possible future check. Use Lighthouse or Search Console to watch for it, and use FunnelGuard to monitor whether your forms, checkouts and tracking keep working.
Related issues
- SEO-163Charset not declared, characters garbled in snippetsFix guide
- SEO-147Missing title tagFix guide
- SEO-155Missing meta descriptionFix guide
- SEO-150Title too long, truncated in resultsFix guide
- SEO-148Empty or placeholder title ('Home', 'Untitled', 'Product')Fix guide
- SEO-149Duplicate titles across pagesFix guide