Mobile viewport
Quick winFound on 12% of audited stores.
Confirm your store has a correct responsive viewport meta tag so it displays properly on phones and tablets.
What it is
The viewport meta tag is a single line of HTML code that lives in the `<head>` of every page on your site. It tells mobile browsers how wide to render your page and how to scale it — essentially instructing phones and tablets to show your site at the right size instead of zooming way out and displaying a tiny desktop version. A correct responsive viewport tag looks like `<meta name="viewport" content="width=device-width, initial-scale=1">`. Without it, or with the wrong settings, your site can look broken, tiny, or unresponsive on mobile devices.
Why it matters
Google uses mobile-first indexing, meaning it primarily crawls and ranks your site based on how it looks and works on a mobile device. A missing or broken viewport tag signals to Google that your site is not mobile-friendly, which can directly suppress your rankings in search results. Beyond SEO, over half of all ecommerce traffic now comes from phones — a store that is hard to read or navigate on mobile loses customers at checkout, destroying conversion rates and revenue. Google's own Page Experience signals and Core Web Vitals scores also depend on correct mobile rendering, compounding the ranking impact.
How to fix it
- Verify your current viewport tag by opening any page on your store, right-clicking, choosing 'View Page Source', and searching for 'viewport'. You should see exactly: <meta name="viewport" content="width=device-width, initial-scale=1">.
- If the tag is missing entirely, add it inside the <head> section of your site's main HTML template.
- If the tag exists but has restrictive settings — such as 'user-scalable=no', 'maximum-scale=1', or a fixed numeric width like 'width=980' — remove those restrictions, as they prevent proper mobile scaling and harm accessibility.
- Use Google's Mobile-Friendly Test (search.google.com/test/mobile-friendly) to confirm the page passes after your change.
- Check two or three representative pages (homepage, a product page, the cart) to ensure the tag is present globally and not just on one template.
- Re-crawl or request indexing via Google Search Console to let Google pick up the corrected mobile rendering quickly.
<meta name="viewport" content="width=device-width, initial-scale=1">Fix it on your platform
Pick your platform for the exact steps.
How to fix mobile viewport on Shopify
- Go to Online Store → Themes in your Shopify Admin.
- Click the '...' (Actions) button next to your active theme and select 'Edit code'.
- In the Layout folder on the left, click 'theme.liquid'.
- Search (Ctrl+F / Cmd+F) for 'viewport'. Most Shopify themes already include the correct tag inside the <head> section.
- If missing, add <meta name="viewport" content="width=device-width, initial-scale=1"> on a new line directly after the opening <head> tag.
- If it exists but has 'user-scalable=no' or 'maximum-scale=1', remove those values so only 'width=device-width, initial-scale=1' remains.
- Click 'Save'. Preview on a mobile device or use Google's Mobile-Friendly Test to verify.
How to fix mobile viewport on WooCommerce
- In your WordPress Admin, go to Appearance → Theme File Editor (or use a child theme via FTP/SFTP).
- Select your active (child) theme in the right-hand dropdown and open 'header.php'.
- Search for 'viewport'. Most modern WordPress/WooCommerce themes include it automatically.
- If missing, add <meta name="viewport" content="width=device-width, initial-scale=1"> inside the <head> tag, ideally before any stylesheet links.
- Alternatively, if your theme uses a functions.php hook system, you can add it via wp_head() action: add_action('wp_head', function(){ echo '<meta name="viewport" content="width=device-width, initial-scale=1">'; }, 1);
- Save and verify with Google's Mobile-Friendly Test.
How to fix mobile viewport on BigCommerce
- In your BigCommerce Admin, go to Storefront → My Themes.
- Click 'Advanced' → 'Edit Theme Files' on your active theme (or download and edit locally).
- Open templates/layout/base.html (the path may vary slightly by theme framework).
- Search for 'viewport'. Cornerstone and most BigCommerce themes include the correct tag by default.
- If missing or incorrect, add/correct the tag inside the <head> section: <meta name="viewport" content="width=device-width, initial-scale=1">.
- Save and publish. Use Google's Mobile-Friendly Test to confirm.
How to fix mobile viewport on Wix
- Wix automatically injects a correct responsive viewport meta tag on all sites — you do not need to add it manually.
- If your site was built in Wix's legacy non-responsive (classic) editor, go to your Wix Dashboard → Settings → Mobile Optimization and enable the mobile view.
- For best results, switch to a Wix ADI or Wix Editor X (now Wix Studio) template, which are built responsive by default and output the correct viewport tag.
- Use Google's Mobile-Friendly Test on your live Wix URL to confirm the tag is present and the site passes.
How to fix mobile viewport on Squarespace
- Squarespace automatically outputs the correct responsive viewport meta tag on all templates — no manual action is needed.
- If you have injected custom code via Settings → Advanced → Code Injection that overrides or duplicates the viewport tag, review and remove any conflicting entries in the 'Header' injection box.
- Confirm by viewing your page source and searching for 'viewport', or run Google's Mobile-Friendly Test on your live URL.
How to fix mobile viewport on Webflow
- Webflow automatically includes the correct responsive viewport meta tag on all published projects.
- To verify or customize: open your Project Settings in the Webflow Designer, go to the 'Custom Code' tab, and check the 'Head Code' section for any conflicting or duplicate viewport tags.
- Remove any custom viewport tags that conflict with Webflow's default (e.g., ones with 'user-scalable=no'), and leave Webflow to render the correct tag automatically.
- Publish the project and confirm with Google's Mobile-Friendly Test.
How to fix mobile viewport on Adobe Commerce (Magento)
- The viewport meta tag is output via your theme's layout XML and PHTML templates. Navigate to your theme directory: app/design/frontend/<Vendor>/<Theme>/.
- Open Magento_Theme/layout/default_head_blocks.xml (or the equivalent file in your theme). Look for a <meta name='viewport'> declaration.
- Alternatively, check app/design/frontend/<Vendor>/<Theme>/Magento_Theme/templates/root.phtml for a hardcoded viewport tag in the <head>.
- Ensure the content attribute reads exactly: width=device-width, initial-scale=1. Remove any user-scalable=no or maximum-scale restrictions.
- If the tag is missing, add it in default_head_blocks.xml using: <block class="Magento\Framework\View\Element\Html\Head\Meta" name="viewport"><arguments><argument name="content" xsi:type="string">width=device-width, initial-scale=1</argument></arguments></block>
- Run bin/magento cache:flush, then verify with Google's Mobile-Friendly Test.
How to fix mobile viewport on Wix Studio
- Wix Studio (the successor to Editor X) automatically outputs a correct responsive viewport meta tag — no manual configuration is required.
- Ensure you are not injecting a conflicting viewport tag via the site's Custom Code panel (Wix Studio Dashboard → Settings → Custom Code).
- Verify your live site passes Google's Mobile-Friendly Test.
How to fix mobile viewport on PrestaShop
- Open your active theme directory on your server: themes/<your-theme>/templates/_partials/head.tpl (or head.thtml depending on theme version).
- Search for 'viewport'. Add or correct the tag inside the <head> block: <meta name="viewport" content="width=device-width, initial-scale=1">.
- Clear PrestaShop's template cache under Advanced Parameters → Performance → Clear cache.
- Verify with Google's Mobile-Friendly Test.
How to fix mobile viewport on OpenCart
- Locate your theme's header template, typically at catalog/view/theme/<your-theme>/template/common/header.twig (OpenCart 3+) or header.tpl (older versions).
- Search for 'viewport'. Add the correct tag in the <head> section if missing: <meta name="viewport" content="width=device-width, initial-scale=1">.
- Save the file and clear OpenCart's cache via Admin → Dashboard → the blue refresh button, or by deleting contents of system/storage/cache/.
- Verify with Google's Mobile-Friendly Test.
Does your site have this issue?
Run a free SEOLZ audit to find mobile viewport — and every other issue — across your whole site in minutes.
Scan my site freeFrequently asked questions
What is Mobile viewport?
The viewport meta tag is a single line of HTML code that lives in the `<head>` of every page on your site. It tells mobile browsers how wide to render your page and how to scale it — essentially instructing phones and tablets to show your site at the right size instead of zooming way out and displaying a tiny desktop version. A correct responsive viewport tag looks like `<meta name="viewport" content="width=device-width, initial-scale=1">`. Without it, or with the wrong settings, your site can look broken, tiny, or unresponsive on mobile devices.
Why does mobile viewport matter?
Google uses mobile-first indexing, meaning it primarily crawls and ranks your site based on how it looks and works on a mobile device. A missing or broken viewport tag signals to Google that your site is not mobile-friendly, which can directly suppress your rankings in search results. Beyond SEO, over half of all ecommerce traffic now comes from phones — a store that is hard to read or navigate on mobile loses customers at checkout, destroying conversion rates and revenue. Google's own Page Experience signals and Core Web Vitals scores also depend on correct mobile rendering, compounding the ranking impact.
How do I fix mobile viewport?
Confirm your store has a correct responsive viewport meta tag so it displays properly on phones and tablets.