Skip to content
AnswerWell geo Documentation

Research · 9 min read · Answerwell

Mobile-First Indexing, Viewport Meta Tag, and Mobile Site Best Practices

How mobile-first indexing works, how to set the viewport meta tag, keep mobile and desktop content aligned, and fix common indexing errors.

This page summarizes Google Search and Chrome Lighthouse documentation on mobile-first indexing, the viewport meta tag, and keeping mobile pages eligible for crawling and ranking. Most of the cluster is Mobile site and mobile-first indexing best practices; Lighthouse and performance docs cover viewport and layout audits.

mobile-first indexing: what changes for your site

Section titled “mobile-first indexing: what changes for your site”

Mobile-first indexing means Google uses the mobile version of a site’s content, crawled with the smartphone agent, for indexing and ranking.

Google uses the mobile version of a site’s content, crawled with the smartphone agent, for indexing and ranking. This is called mobile-first indexing.

— Google, Mobile site and mobile-first indexing best practices

You do not have to ship a separate mobile site to appear in Google Search, but a mobile-friendly experience is strongly recommended. Maintaining your website’s SEO notes that Google now uses a mobile crawler as the default crawler for websites, and that a large share of users go online on mobile devices.

Practical takeaway: whatever Googlebot sees on the mobile URL (or the single responsive URL) is what drives indexing. Desktop-only content, desktop-only noindex, or a broken mobile URL can remove or weaken pages in the index after mobile-first indexing applies.

Mobile-friendly site configurations: responsive, dynamic serving, separate URLs

Section titled “Mobile-friendly site configurations: responsive, dynamic serving, separate URLs”

Google describes three ways to make a site mobile-friendly. The mobile-first indexing guide compares them as follows.

Configuration Same URL? What differs Notes from Google
Responsive design Yes Layout/CSS for screen size Recommended; same HTML and metadata on mobile and desktop
Dynamic serving Yes HTML by user agent Uses user-agent sniffing and Vary: user-agent
Separate URLs (m-dot) No Different HTML per device Uses user agent, Vary, and redirects; extra linking rules apply

Responsive design: Serves the same HTML code on the same URL regardless of the users’ device (for example, desktop, tablet, mobile, non-visual browser), but can display the content differently based on the screen size. Google recommends Responsive Web Design because it’s the easiest design pattern to implement and maintain.

— Google, Mobile site and mobile-first indexing best practices

Most parity, robots, structured data, and troubleshooting sections in that guide target dynamic serving and separate URLs. With responsive design, content and metadata on mobile and desktop are already the same URL and document.

viewport meta tag: how to size the page for mobile screens

Section titled “viewport meta tag: how to size the page for mobile screens”

The viewport meta tag tells the browser how to lay out the page on a phone or tablet. Google treats its presence as a signal that the page is mobile-friendly.

This tag tells the browser how to render a page on a mobile device. Presence of this tag indicates to Google that the page is mobile friendly.

— Google, meta tags and attributes that Google supports

How to add a viewport meta tag in the document head

Section titled “How to add a viewport meta tag in the document head”

Lighthouse’s Does not have a tag with width or initial-scale audit expects a viewport in <head>, commonly:

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

width=device-width sets the layout width to the device width; initial-scale=1 sets the initial zoom when the user lands on the page.

Chrome’s Optimize viewport for mobile performance insight adds stricter pass criteria: width must be set (usually device-width), and initial-scale must be present with value ≥ 1. The broader Performance insights doc states that a correct viewport helps avoid a 300 millisecond tap delay on mobile.

The Lighthouse PWA audit Content is not sized correctly for the viewport checks whether page width matches the viewport—essentially whether the layout is tuned for mobile. You may ignore that audit if mobile optimization is not required, or if content width is intentionally narrower or wider than the viewport.

Same content on mobile and desktop: what must match for indexing

Section titled “Same content on mobile and desktop: what must match for indexing”

Under mobile-first indexing, only content shown on the mobile version is used for indexing. Google asks for equivalence, not identical DOM trees.

Make sure that your mobile site contains the same content as your desktop site.

— Google, Mobile site and mobile-first indexing best practices

You may use a different mobile layout (for example accordions) if the primary content is still equivalent. If the mobile page deliberately has less content, Google warns you can expect traffic loss because it cannot use information that exists only on desktop. Use the same clear headings on both versions.

For large sites with different mobile and desktop HTML, Latest documentation updates notes a crawl-budget practice: discovery of new pages can slow if the mobile version does not include all links that exist on the desktop version.

Images, titles, and page quality on mobile

Section titled “Images, titles, and page quality on mobile”

The same guide recommends that mobile images follow image best practices: sufficient resolution, supported formats, stable image URLs, and the same alt text as desktop. Different image URLs on mobile versus desktop can cause a temporary image traffic loss during transition; using the same image URLs avoids that.

Titles and meta descriptions should be equivalent across versions. Mobile pages should follow the Better Ads Standard so ads do not dominate small screens.

robots meta tags, lazy-loading, and crawlable resources

Section titled “robots meta tags, lazy-loading, and crawlable resources”

Google must be able to access and render mobile HTML and dependent resources.

Use the same robots meta tags on the mobile and desktop site. If you use a different robots meta tag on the mobile site (especially the noindex or nofollow tags), Google may fail to crawl and index your page when your site is enabled for mobile-first indexing.

— Google, Mobile site and mobile-first indexing best practices

Other access rules from the same source:

  • Do not lazy-load primary content only after user interaction (swipe, click, type); Google will not run those interactions.
  • Do not block mobile image or asset URLs with robots.txt disallow if you want them crawled.
  • Use the same robots.txt rules for mobile and desktop hosts in most setups.
  • Ensure the mobile site can handle a possible increase in crawl rate on the mobile version.

If you use structured data, it must exist on the version Google indexes—mobile for mobile-first sites.

If you have structured data on your site, make sure that it’s present on both versions of your site.

— Google, Mobile site and mobile-first indexing best practices

Checklist from that page:

  • Match structured data between mobile and desktop; if you must prioritize on mobile, start with Breadcrumb, Product, and VideoObject types.
  • Use correct URLs in mobile structured data (mobile URLs when markup lives on mobile pages).
  • If you use Data Highlighter, train and monitor it on the mobile site.

The mobile-first troubleshooting section lists missing structured data on mobile as a common error when desktop has markup the mobile page lacks.

Separate URLs (m-dot): canonical, alternate, and hreflang

Section titled “Separate URLs (m-dot): canonical, alternate, and hreflang”

When mobile and desktop use different URLs, Google recommends explicit linking:

  • rel=canonical on desktop; mobile is the rel=alternate for that desktop URL.
  • hreflang: mobile hreflang targets mobile URLs; desktop hreflang targets desktop URLs.
  • Error responses must match: if desktop returns normal content but mobile returns an error, the page can drop from the index.
  • Avoid indexable mobile URLs with hash fragments (#); fragment URLs are usually not indexable.
  • Avoid mapping many distinct desktop URLs to one mobile URL (for example everything redirecting to the mobile home page).

Verify both property versions in Search Console when using separate URLs, because reporting may shift when mobile-first indexing is enabled for the domain.

Lighthouse SEO and usability signals beyond the viewport

Section titled “Lighthouse SEO and usability signals beyond the viewport”

Several Chrome audits reinforce mobile usability and indexability:

Audit What it checks Source
Tap targets Size and spacing of buttons, links, forms on touch devices Tap targets are not sized appropriately
Plugins Content depending on browser plugins Document uses plugins

Search engines often can’t index content that relies on browser plugins, such as Java and Flash. That means plugin-based content doesn’t show up in search results. Also, most mobile devices don’t support plugins, which creates frustrating experiences for mobile users.

— Chrome, Document uses plugins

Tap-target guidance ties mobile-friendly layout to ranking and accessibility: targets should be large enough and spaced apart.

Common mobile-first indexing errors and fixes

Section titled “Common mobile-first indexing errors and fixes”

Google’s troubleshooting list in Mobile site and mobile-first indexing best practices groups frequent failures:

Symptom / cause Fix direction
Missing structured data on mobile Copy or generate the same markup on mobile; fix mobile URLs in JSON-LD
noindex on mobile Remove or align with desktop
Less content or fewer images on mobile Restore equivalent primary content and images
nofollow on mobile Align robots meta with desktop
Image blocked in robots.txt Allow crawl of mobile asset URLs
Low-resolution images Use adequately sized images on mobile
Missing title or meta description on mobile Match desktop metadata
Mobile URL is 404/soft error Fix parity of HTTP status and content
Mobile URL contains # fragment Serve indexable URLs without relying on fragments
Mobile host blocked by robots.txt Audit rules for both hosts
Many desktop URLs → one mobile URL Provide one mobile URL per distinct desktop page
Video issues on mobile Supported tags (video, embed, object), visible placement, no interaction-only lazy load
Host capacity Scale mobile origin for higher mobile crawl rate

When Search Console reports mobile-first or structured-data issues, resolve the underlying mobile parity or markup problem, then use Google’s reconsideration or recrawl flows described in the relevant Search Console messages (as referenced in Google’s structured-data troubleshooting docs elsewhere in Search Central).

  1. Open Mobile site and mobile-first indexing best practices and confirm whether you use responsive, dynamic serving, or separate URLs; apply the matching canonical, hreflang, and parity rules.

  2. In page source on a key URL, confirm <meta name="viewport" content="..."> with width=device-width (or equivalent) and initial-scale ≥ 1, as in Does not have a tag with width or initial-scale and Optimize viewport for mobile.

  3. Compare mobile and desktop rendered content (same primary text, headings, images, metadata, and structured data). Use Google’s mobile-first troubleshooting table if anything exists only on desktop.

  4. Run Lighthouse on representative pages and review viewport, content width, tap targets, and plugins audits.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will correct or clarify it.