# Check metadata parity

- Check 07.08 · Mobile-first and responsive design · Critical
- Source: https://checklist-seo-geo.com/en/mobile-first-responsive-design/check-metadata-parity
- Compare title, description, meta robots, canonical and hreflang between mobile and desktop, then fix the gaps in your server, CMS or framework.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/mobile-first-responsive-design/check-metadata-parity.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

Google crawls and indexes the mobile version of your pages. The metadata it uses is therefore the metadata in the HTML served to a smartphone: title, meta description, meta robots, `X-Robots-Tag` header, canonical, hreflang. This check means verifying that it is identical, or equivalent, to the desktop version's, then removing the differences. On a well-built responsive site, the check takes a few minutes; differences turn up mostly on sites that serve different HTML depending on the device.

## Why it matters

Since July 5, 2024, Google crawls and indexes sites with Googlebot Smartphone only. Googlebot Desktop still shows up in logs for some purposes, but it no longer feeds the index. If a piece of metadata differs between the two versions, the mobile version is the one that counts, even if the team only ever looks at the desktop version.

Google says so explicitly in its mobile-first best practices: the title and meta description must be equivalent on both versions, and the meta robots tags must be the same. A `noindex` or `nofollow` present only on mobile can drop a page from the index or block the discovery of its links.

There are three configurations:

| Configuration | Mobile HTML | Risk of mismatch |
|---|---|---|
| Responsive (same URL, same HTML) | Identical | Low: only through JavaScript or a misconfigured cache |
| Dynamic serving (same URL, HTML depends on the user agent) | Different | High: two templates to maintain |
| Separate URLs (`m.example.com`) | Different, other URL | High: two sites, plus the canonical and alternate annotations |

On the GEO side (Generative Engine Optimization, visibility in generative engines), the user agents OpenAI documents for its crawlers do not contain the word `Mobile`. A site using dynamic serving therefore most likely serves them the desktop version, while Google, and its AI Overviews, rely on the mobile version. Two diverging versions mean two different descriptions of the same page, depending on the engine.

## What it improves

- **Indexing**: no more forgotten mobile `noindex` or mobile canonical pointing elsewhere.
- **Appearance in search results**: the title and description you wrote are the ones Google reads. It is still free to rewrite them.
- **Consolidation**: on a site with separate URLs, the canonical and alternate annotations group signals on a single URL.
- **International targeting**: consistent hreflang on each version prevents the wrong language from showing.
- **Generative engines**: a consistent description whatever the crawler. Indirect effect, and no guarantee of being cited.
- **Rankings**: parity itself has no direct effect; it prevents losses.

## How to check

**1. Identify the configuration.** Request the page with both Googlebot user agents and compare the headers:

```bash
UA_MOBILE='Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
UA_DESKTOP='Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Googlebot/2.1; +http://www.google.com/bot.html) Chrome/130.0.0.0 Safari/537.36'

curl -s -o /dev/null -D - -A "$UA_MOBILE" https://example.com/page/ | grep -i -E "^(location|vary|x-robots-tag|link):"
curl -s -o /dev/null -D - -A "$UA_DESKTOP" https://example.com/page/ | grep -i -E "^(location|vary|x-robots-tag|link):"
```

A redirect to `m.example.com` indicates separate URLs; a `vary: user-agent` indicates dynamic serving.

**2. Compare the raw HTML.** Extract the metadata from both responses:

```bash
for UA in "$UA_MOBILE" "$UA_DESKTOP"; do
  curl -sL -A "$UA" https://example.com/page/ \
    | grep -o -i -E '<title>[^<]*</title>|<meta[^>]+name="(description|robots|googlebot)"[^>]*>|<link[^>]+rel="(canonical|alternate)"[^>]*>|<html[^>]*lang="[^"]*"' \
    > "meta-$(echo "$UA" | grep -q Mobile && echo mobile || echo desktop).txt"
done
diff meta-mobile.txt meta-desktop.txt && echo "No difference in the raw HTML"
```

**3. Compare the rendered page.** If the site modifies the `<head>` with JavaScript, the raw HTML is not enough. The Playwright script in the “How to implement” section compares the rendered DOM at smartphone and desktop screen sizes.

**4. See what Google kept.** In Search Console, [inspect the URL](https://search.google.com/search-console/inspect): under “Page availability”, the “Crawled as” field must show Googlebot smartphone. “View crawled page” gives the HTML Google read; look for the title, the canonical and the meta robots in it. The “Google-selected canonical” line must match your canonical.

**5. Site-wide.** Run two crawls with Screaming Frog, one with the Googlebot Smartphone user agent and the other with Googlebot Desktop, and compare the Page Titles, Meta Description, Directives and Canonicals tabs. Crawl comparison mode (`Mode > Compare`) does this automatically, with a paid license and database storage.

Expected result: zero differences, or differences limited to intended ones (the viewport tag, the alternate and canonical annotations of a site with separate URLs).

## How to implement

### Before you start

Elements to align, and what is tolerated:

| Element | Rule |
|---|---|
| `<title>` | Equivalent. A shorter mobile title is tolerated if it keeps the same topic; identical is simpler. |
| Meta description | Equivalent. |
| Meta robots, `googlebot`, `X-Robots-Tag` | Strictly identical. |
| Canonical | Identical with responsive design and dynamic serving. With separate URLs: the mobile page points to the desktop URL. |
| Hreflang | Identical. With separate URLs: mobile URLs point to mobile URLs, desktop URLs to desktop URLs. |
| `lang` of `<html>` | Identical. |
| Open Graph and X cards | Identical: social networks and some preview tools read one version or the other. |

On a site with separate URLs, the two required annotations are:

```html
<!-- On https://www.example.com/page/ -->
<link rel="alternate" media="only screen and (max-width: 640px)" href="https://m.example.com/page/">

<!-- On https://m.example.com/page/ -->
<link rel="canonical" href="https://www.example.com/page/">
```

> **Good to know:** the most durable solution is still responsive design. Google recommends it because it removes the problem: a single template, so a single set of metadata. If a redesign is planned, dropping dynamic serving or the `m.` subdomain settles this check for good.

### Rendering comparison script

For a site that modifies the `<head>` with JavaScript, this Node.js script compares the metadata rendered on smartphone and on desktop. Install Playwright (`npm i -D playwright && npx playwright install chromium`), save the file as `parite-meta.mjs`, then run `node parite-meta.mjs https://example.com/page/`:

```js
import { chromium } from 'playwright';

const url = process.argv[2];
const profils = {
  mobile: {
    userAgent: 'Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)',
    viewport: { width: 412, height: 915 },
    isMobile: true,
    hasTouch: true,
  },
  desktop: {
    userAgent: 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Googlebot/2.1; +http://www.google.com/bot.html) Chrome/130.0.0.0 Safari/537.36',
    viewport: { width: 1366, height: 900 },
  },
};

async function lire(browser, profil) {
  const context = await browser.newContext(profil);
  const page = await context.newPage();
  const reponse = await page.goto(url, { waitUntil: 'networkidle' });
  const meta = await page.evaluate(() => {
    const attr = (selecteur, nom) => document.querySelector(selecteur)?.getAttribute(nom) ?? null;
    return {
      urlFinale: location.href,
      title: document.title,
      description: attr('meta[name="description"]', 'content'),
      robots: attr('meta[name="robots"]', 'content'),
      googlebot: attr('meta[name="googlebot"]', 'content'),
      canonical: attr('link[rel="canonical"]', 'href'),
      lang: document.documentElement.lang,
      hreflang: [...document.querySelectorAll('link[rel="alternate"][hreflang]')]
        .map((l) => `${l.hreflang} ${l.href}`).sort().join(' | '),
      ogTitle: attr('meta[property="og:title"]', 'content'),
      ogImage: attr('meta[property="og:image"]', 'content'),
    };
  });
  meta.xRobotsTag = reponse.headers()['x-robots-tag'] ?? null;
  await context.close();
  return meta;
}

const browser = await chromium.launch();
const mobile = await lire(browser, profils.mobile);
const desktop = await lire(browser, profils.desktop);
await browser.close();

let ecarts = 0;
for (const cle of Object.keys(mobile)) {
  if (mobile[cle] !== desktop[cle]) {
    ecarts++;
    console.log(`MISMATCH ${cle}\n  mobile  : ${mobile[cle]}\n  desktop : ${desktop[cle]}`);
  }
}
console.log(ecarts === 0 ? 'Full parity.' : `${ecarts} mismatch(es).`);
process.exit(ecarts === 0 ? 0 : 1);
```

On a site with separate URLs, `urlFinale` and `canonical` differ by design: check that the mobile canonical does point to the desktop URL. The non-zero exit code lets you plug this script into continuous integration.

### Apache

Versions: Apache 2.4.

The server does not produce the title, but it can add an `X-Robots-Tag` or a redirect depending on the host or the user agent. Look for conditional rules:

```bash
grep -R -n -i -E "x-robots-tag|HTTP_USER_AGENT|m\.example\.com" /etc/apache2/ /var/www/example/.htaccess
```

A `Header set X-Robots-Tag "noindex"` copied from a staging environment into the `m.example.com` virtual host is the most serious mismatch possible. If the site uses dynamic serving, tell caches about it:

```apache
<IfModule mod_headers.c>
    Header merge Vary User-Agent
</IfModule>
```

Reload with `sudo apachectl configtest && sudo systemctl reload apache2`.

### Nginx

Versions: Nginx 1.18 and later.

Same check:

```bash
sudo nginx -T 2>/dev/null | grep -n -i -E "x-robots-tag|http_user_agent|m\.example\.com"
```

For dynamic serving, in the `location` block that serves the HTML:

```nginx
add_header Vary "User-Agent" always;
```

By default, an `add_header` in a `location` block cancels those inherited from the `server` block: repeat your other headers there or, since Nginx 1.29.3, add `add_header_inherit merge;` to combine them. If an Nginx page cache is active, add the device variant to the key (`fastcgi_cache_key "$scheme$request_method$host$request_uri$mobile";` with a `$mobile` variable set by a `map` on `$http_user_agent`); otherwise a desktop visitor receives the cached mobile HTML. Reload with `sudo nginx -t && sudo systemctl reload nginx`.

### Cloudflare

Versions: Cloudflare dashboard, cache rules, all plans, November 2026.

By default, Cloudflare does not cache HTML: nothing to do for a responsive site. If you have enabled HTML caching and the origin uses dynamic serving, Cloudflare must keep one copy per device type. In a [cache rule](https://dash.cloudflare.com/?to=/:account/:zone/caching/cache-rules), in the cache key section, enable “Cache by device type”, available on all plans; the origin then receives the `CF-Device-Type` header (`mobile`, `tablet` or `desktop`). With APO for WordPress, the setting of the same name, on the APO card, uses the same mechanism. Purge the cache after each template fix.

### AWS

Versions: Amazon CloudFront console, cache policies, November 2026.

On **CloudFront**, an origin using dynamic serving must receive the device type, and the cache must take it into account. In a custom cache policy, add the `CloudFront-Is-Mobile-Viewer`, `CloudFront-Is-Tablet-Viewer` and `CloudFront-Is-Desktop-Viewer` headers to the cache key, then read them at the origin rather than the raw user agent. Run a `/*` invalidation after the fix.

### WordPress

Versions: WordPress 6.4 to 7.1; Yoast SEO, Rank Math and SEOPress in their 2026 versions.

SEO plugins (Yoast SEO, Rank Math, SEOPress) output the title, description, canonical and meta robots on the server side, once: with a responsive theme, parity is a given. Differences come from three sources:

- **A “mobile” theme or plugin** that loads another theme for smartphones: check that the SEO plugin runs there too (`wp_head()` present in its `header.php`).
- **Code conditioned on `wp_is_mobile()`** in `header.php` or `functions.php`. This function reads the user agent and is not meant for adapting the layout; remove any condition that affects the tags in the `<head>`.
- **A separate mobile cache** (WP Rocket's mobile cache, enabled by default; LiteSpeed Cache's “Cache Mobile” option): after changing a title, purge both sets of files.

Quick command-line check with the two variables from the “How to check” section:

```bash
curl -s -A "$UA_MOBILE" https://example.com/page/ | grep -c 'name="robots"'
```

### Shopify

Versions: Online Store 2.0 themes, Shopify admin, November 2026.

Shopify themes are responsive: the `<head>` comes from `layout/theme.liquid` for every device. Check that no app injects a second title or robots tag, and that no block in `theme.liquid` depends on JavaScript device detection. Titles and descriptions are set in the “Search engine listing” section of each product, collection or page.

### PrestaShop

Versions: PrestaShop 1.7, 8 and 9.

Since version 1.7, themes are responsive and metadata comes from `Shop Parameters > Traffic & SEO` or from each product or page. On a 1.6 store still running a separate mobile theme, compare the two `header.tpl` files. Modules hooked to `displayHeader` can add tags: disable them one by one if a duplicate appears.

### Magento

Versions: Magento Open Source and Adobe Commerce 2.4 (2.4.6 to 2.4.9).

Magento can apply another theme depending on the user agent: `Content > Design > Configuration`, then the User Agent Rules of the relevant store view. If a rule exists, both themes must output the same tags; the safest option is to delete it and keep a responsive theme. Then flush the cache (`bin/magento cache:flush`).

### Drupal

Versions: Drupal 10 and 11; Metatag module 2.x.

With a responsive theme (Olivero, or any recent theme), the Metatag module outputs the same tags for every device. Just check that no per-device theme-switching module is installed.

### Wix

Versions: Wix Editor and Wix Studio, November 2026.

Wix serves the same page to both displays; the page's SEO settings apply to both. Nothing to configure: just check any tags added through custom code.

### Squarespace

Versions: Squarespace 7.1, November 2026.

Squarespace sites are responsive, with a single set of metadata per page. Nothing to configure.

### Webflow

Versions: Webflow Designer, all plans, November 2026.

Webflow breakpoints only change the CSS. The title, description and custom `<head>` code (page settings) apply to every device.

### Laravel

Versions: Laravel 10 to 13.

Metadata comes from a single Blade layout. Look for device conditions, often introduced by a user agent detection package:

```bash
grep -R -n -i -E "isMobile|isDesktop|HTTP_USER_AGENT|userAgent\(" resources/views app/
```

A `@section('title')` or `@push('meta')` placed in an `@if($agent->isMobile())` branch creates a mismatch. Take the metadata out of any device condition.

### Symfony

Versions: Symfony 6.4 to 8.1.

Same logic with Twig: the `{% block title %}` and `{% block meta %}` blocks of the base template must not depend on any device detection. Clear the cache after changes (`php bin/console cache:clear`).

### Next.js

Versions: Next.js 15 and 16 (App Router).

With the App Router, `metadata` and `generateMetadata` run on the server and know nothing about screen size: parity is a given as long as no proxy rewrites URLs depending on the device. Since Next.js 16, this file is called `proxy.ts`; `middleware.ts`, its former name, is still recognized but deprecated. Look for this case in both:

```bash
grep -R -n -E "userAgent\(|device\.type|isMobile" proxy.ts src/proxy.ts middleware.ts src/middleware.ts app/ src/app/ 2>/dev/null
```

If the proxy sends smartphones to an `/m/...` route, both routes must export the same metadata or, better, merge them. Also avoid changing `document.title` in a client component based on `window.innerWidth`.

### Nuxt

Versions: Nuxt 3 and 4; `@nuxtjs/device` module 3 and 4.

`useSeoMeta` and `useHead` are rendered on the server. A value computed from a device detection module (`$device.isMobile`) creates a mismatch: keep metadata independent of the device.

### Astro

Versions: Astro 5 to 7.

By default, pages are generated at build time, identical for every device. With on-demand rendering (server adapter), they stay that way as long as the code does not read the user agent. Nothing to configure, unless a client component modifies the `<head>` after loading.

## Common mistakes

- **Testing with a desktop browser only**: the team approves titles on a large screen and never sees the mobile template.
- **A `noindex` on `m.example.com`** from a server rule inherited from a staging environment.
- **A self-referencing mobile canonical** on a site with separate URLs: it must point to the desktop URL.
- **Crossed hreflang**: a mobile URL declaring desktop alternates, or the other way round.
- **A cache without a device variant**: mobile HTML served to desktops, or the reverse, depending on who visited first.
- **Comparing the raw HTML of a site that rewrites the `<head>` with JavaScript**: the real mismatch only shows up after rendering.
- **Blocking the desktop user agent by reflex**: Googlebot Desktop still crawls some pages for features such as product listings.

## Frequently asked questions

### Must the title be identical on mobile and desktop?

Google asks for the title and meta description to be equivalent on both versions, not necessarily identical to the character. Since Google indexes the mobile version, the mobile title is the one that feeds search results. The simplest approach is to serve exactly the same title everywhere; a shortened mobile title is still acceptable if it keeps the same topic and the same important terms.

### My site is responsive: do I still need to check metadata parity?

Yes, but the check is quick. A responsive site serves the same HTML to every device, so its metadata is identical by design. Differences remain possible when JavaScript changes the title or canonical depending on screen size, when a plugin loads a mobile theme, or when a page cache mixes up variants. Comparing the rendered page on smartphone and on desktop is enough to rule this out.

### Which canonical should an m-dot mobile site use?

On a site with separate URLs, each mobile page carries a canonical pointing to the equivalent desktop URL. Each desktop page carries a link rel alternate tag with a media attribute, for example only screen and (max-width: 640px), pointing to the mobile URL. Hreflang stays separate: mobile URLs point to mobile URLs, desktop URLs to desktop URLs.

### Does a mobile-only noindex have consequences?

Yes, and serious ones. Google crawls and indexes with Googlebot Smartphone: if it reads a noindex in the mobile version, it removes the page from the index, even if the desktop version is indexable. Likewise, a mobile nofollow prevents the discovery of the page's links. The meta robots tags and the X-Robots-Tag header must therefore be strictly identical on both versions.

## Resources

- [Google Search Central: Mobile-first indexing best practices](https://developers.google.com/search/docs/crawling-indexing/mobile/mobile-sites-mobile-first-indexing?hl=en)
- [Google Search Central: Google's common crawlers (user agents)](https://developers.google.com/search/docs/crawling-indexing/google-common-crawlers?hl=en)
- [Google Search Central: Robots meta tag and X-Robots-Tag](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag?hl=en)
- [Google Search Central: Title links](https://developers.google.com/search/docs/appearance/title-link?hl=en) and [snippets and meta description](https://developers.google.com/search/docs/appearance/snippet?hl=en)
- [Search Console Help: URL Inspection tool](https://support.google.com/webmasters/answer/9012289?hl=en)
- [MDN: Vary header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Vary)
- [Cloudflare: Cache keys and cache by device type](https://developers.cloudflare.com/cache/how-to/cache-keys/)
- [Amazon CloudFront: Device type headers](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/adding-cloudfront-headers.html)
- [WordPress: wp_is_mobile function](https://developer.wordpress.org/reference/functions/wp_is_mobile/)
- [Playwright: Device emulation](https://playwright.dev/docs/emulation)

Next steps: [check structured data parity](https://checklist-seo-geo.com/en/mobile-first-responsive-design/check-structured-data-parity), [check internal linking parity](https://checklist-seo-geo.com/en/mobile-first-responsive-design/check-internal-linking-parity) and [check title, description and canonical after rendering](https://checklist-seo-geo.com/en/javascript-html-rendering/check-title-description-canonical-after-rendering).
