Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Viewport meta tag missing: how to find and fix it

SEO-162Medium impactOther toolBy FunnelGuardPublished
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.

The standard viewport taghtml
<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.

Where a missing viewport tag breaks the journey
  1. Ad or search clickVisitor taps on a phone
  2. Page loadsBrowser renders at about 980px wide
  3. Visitor reads and tapsTiny text, hard to tap buttons
  4. Form or checkoutNever reached by many visitors

The page loads, but the mobile experience fails before the visitor can act.

Mobile form completion with and without the tagExample numbers
Mobile form completion with and without the tag (example)Without viewport tag: 1.2 %; With viewport tag: 3.4 %0131.23.4Without viewport tagWith viewport tag%

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

Three quick ways to check
  1. 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.

  2. 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.

  3. 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'.

  4. 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.

Add the viewport tag by platform
  1. 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.

  2. 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.

  3. Clear caches

    Purge your caching plugin and any CDN so the new head is served.

Correct placement in the headhtml
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Your page title</title>
</head>
Page on a phone

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

Confirmation checklist
  • 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.

How the problem usually appears
  1. Day 1

    A custom theme or template is launched without the viewport tag.

  2. Week 1

    Mobile visitors see a shrunken page and bounce more.

  3. Week 3

    A Lighthouse audit or a phone test exposes the missing tag.

  4. 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.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.