Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Missing viewport meta tag: fix a desktop page shrunk on phones

PRF-160High impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

The viewport meta tag tells a mobile browser how wide the page should be and how much to zoom at first. Without it, most phone browsers fall back to a virtual desktop width (often around 980 px) and scale the result down to fit the real screen.

The result looks like a miniature desktop site. Your media queries (the CSS rules that switch layouts by screen width) see a wide screen, so the mobile layout never loads, even if your theme has one.

The standard viewport taghtml
<meta name="viewport" content="width=device-width, initial-scale=1">

Why it costs you leads or sales

Visitors on phones have to pinch and zoom to read a headline, tap a button or fill in a field. Many will not bother. Forms, checkout buttons and phone numbers become hard to hit, so mobile visitors leave instead of converting. Paid mobile clicks are wasted on a page that looks broken.

Where a mobile visitor drops out
  1. Ad or search clickVisitor taps a link on their phone
  2. Page loads tinyNo viewport tag, desktop layout shrunk
  3. Reads and tapsNeeds pinch-zoom, mis-taps
  4. Form submittedNever reached

The page loads, but the shrunk layout blocks every step after it.

Mobile conversion rate with and without the tagExample numbers
Mobile conversion rate with and without the tag (example)Without viewport tag: 0.8 %; With viewport tag: 2.4 %0120.82.4Without viewport tagWith viewport tag%

Example: illustrative numbers only, not real measurements.

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 zoomed-out desktop site with very small text, the tag is probably missing or wrong.

  2. View the page source

    On desktop, right-click the page, choose View page source and search for viewport. You should find a meta tag with width=device-width.

  3. Use Chrome DevTools

    Press F12, click the device toolbar icon, pick a phone size and reload. If the page does not reflow to the narrow width, check the head for the tag.

  4. Run Lighthouse

    In DevTools, open the Lighthouse tab and run a mobile audit. It reports a missing or invalid viewport tag.

How to fix it

Add the tag once in the shared <head> so every page gets it. Most modern themes and builders already include it, so if it is missing, look for a custom template, a removed theme setting or a plugin that strips head code.

Add the viewport tag by platform
  1. Check your theme header

    Go to Appearance > Theme File Editor (or use a child theme) and open header.php. Make sure the tag is inside <head>.

  2. Add it if missing

    Paste <meta name="viewport" content="width=device-width, initial-scale=1"> before wp_head();, or hook it with a small snippet in a child theme's functions.php.

  3. Clear caches

    Purge any caching plugin and CDN cache, then re-test on a phone.

Correct head examplehtml
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Your page title</title>
</head>

How to confirm it's fixed

Confirm the fix
  • View source on each key page and find the viewport tag inside the head
  • Open the page on a real iPhone and Android phone: text is readable without zooming
  • Check that the mobile layout appears (menu, stacked columns, full-width form)
  • Run a Lighthouse mobile audit and confirm no viewport warning
  • Test the form or checkout button with your thumb

How to prevent it happening again

The tag usually disappears when a theme is switched, a template is rebuilt, a page is moved to a new builder or someone pastes over the head code. Keep it in one shared layout file and add a phone check to your release routine.

Habits that help
  • Test every new landing page on a phone before you send traffic to it
  • Re-check after theme changes, redesigns and migrations
  • Keep head code in one shared template, not copied per page
  • Run a Lighthouse mobile audit after each major release

How FunnelGuard handles this

FunnelGuard does not check for a missing viewport meta tag yet. It is a possible future check. Today, FunnelGuard runs your real customer journeys on a schedule and checks each step, the tracking hits and whether test leads arrive, and sends one alert with a screenshot if a journey fails.

That can show you the symptoms of a broken page, such as a form that cannot be submitted, but it will not tell you that the viewport tag is the reason. To watch for this issue, run a Lighthouse mobile audit after changes, check key pages on a real phone, or use the free read-only FunnelGuard website audit as a general health check.

Once the tag is in place, look at tap target size, input font size and horizontal scrolling. These are separate problems that often show up right after a viewport fix.

Questions people ask

Why does my website look tiny on mobile?

Most likely the page has no viewport meta tag. Phones then render it at a desktop width of about 980 px 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 and what does it do?

It is a line of HTML in the head that tells mobile browsers to match the page width to the device screen and set the starting zoom. Without it, responsive CSS and mobile layouts do not apply.

What is the correct viewport meta tag?

Use <meta name="viewport" content="width=device-width, initial-scale=1">. It works for nearly all sites. Avoid adding user-scalable=no or maximum-scale=1.

How do I check if my site has a viewport meta tag?

View the page source and search for viewport, or run a Lighthouse mobile audit in Chrome DevTools. You can also open the page on a phone: a tiny zoomed-out desktop layout is a strong sign it is missing.

Why is my responsive design not working on phones?

A missing viewport tag is a common cause. Without it, the browser reports a wide screen, so your media queries pick the desktop styles. Add the tag first, then check your CSS breakpoints.

Can I add the viewport tag with Google Tag Manager?

It is not recommended. The tag needs to be in the HTML head before the page renders, and GTM loads later. Add it in your theme, template or site builder instead.

Does a missing viewport tag hurt SEO?

It can. A page that is not usable on mobile gives visitors a poor experience, and Google tests pages on mobile. Fixing it makes the page readable and easier for visitors to use.

Does FunnelGuard detect a missing viewport meta tag?

No, not yet. It is a possible future check. FunnelGuard currently monitors journeys, tracking hits and test leads, so use Lighthouse or a phone test for this issue.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.