# Check structured data parity

- Check 07.09 · Mobile-first and responsive design · Critical
- Source: https://checklist-seo-geo.com/en/mobile-first-responsive-design/check-structured-data-parity
- Check that the mobile version carries the same structured data as desktop, with the right URLs, then fix the theme, CMS or JavaScript injection.
- 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-structured-data-parity.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

Structured data (JSON-LD, microdata) describes the page to search engines: product, breadcrumb, article, organization, video. Google reads it in the mobile version, since it indexes with Googlebot Smartphone. This check means verifying that each mobile template carries the same types, the same properties and correct URLs, then fixing the differences. Once it is done, the Rich Results Test gives the same result on smartphone and on desktop.

## Why it matters

Google asks for it in its mobile-first best practices: the mobile version must contain the same structured data as the desktop version, with `BreadcrumbList`, `Product` and `VideoObject` as priorities. On a site with separate URLs, the URLs cited in the mobile markup must point to the mobile URLs.

Markup disappears from the mobile version more often than you might think, even on a responsive site:

- a review widget that injects `AggregateRating` is only loaded on large screens;
- the breadcrumb, and its microdata, is removed from the mobile HTML instead of being hidden with CSS;
- a Google Tag Manager tag that adds JSON-LD has a trigger restricted to wide screens;
- a separate mobile theme, on a site using dynamic serving, never received the markup added to the main theme.

In all these cases, the markup does exist, but Google does not see it, and the corresponding rich results disappear without any clear message.

On the GEO side (Generative Engine Optimization), JSON-LD is an explicit description of the page that some systems can use. No generative engine documents a guaranteed use of structured data: parity mainly prevents Google and other crawlers from reading two different descriptions.

## What it improves

- **Rich results**: breadcrumbs, price and availability, and videos stay eligible. Eligibility does not guarantee display.
- **Search Console reports**: the enhancement reports reflect the mobile index; markup missing on mobile makes the number of valid items drop there.
- **Product listings**: consistent price and availability between the page, the structured data and Merchant Center.
- **Generative engines**: a consistent description of entities and offers. Indirect and not guaranteed.
- **Rankings**: no direct effect; structured data is not a ranking factor.

## How to check

**1. Rich Results Test, on smartphone then on desktop.** Paste the URL into the Rich Results Test: by default it crawls with the smartphone agent (Google-InspectionTool). Note the items detected, then run it again after choosing the desktop agent in the test options. Both lists must be identical, with the same number of items per type.

**2. URL Inspection.** In Search Console, [inspect the URL](https://search.google.com/search-console/inspect), then expand the “Enhancements & Experience” section. It shows the structured data Google found in the crawled version, hence the mobile one.

**3. Raw JSON-LD comparison.** For a site using dynamic serving or separate URLs:

```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'

for UA in "$UA_MOBILE" "$UA_DESKTOP"; do
  curl -sL -A "$UA" https://example.com/produit/ | grep -o -E '"@type"[[:space:]]*:[[:space:]]*"[^"]+"' | sort | uniq -c
  echo "----"
done
```

Both blocks must show the same types with the same counts. This command does not see markup injected with JavaScript: for that, use the Rich Results Test or the script in the “How to implement” section.

**4. Site-wide.** In Screaming Frog, enable structured data extraction (JSON-LD, microdata, RDFa) and JavaScript rendering in the crawl configuration, then run one crawl with the Googlebot Smartphone user agent and another with Googlebot Desktop. Compare the Structured Data tab of both exports, template by template.

Expected result: same types, same required and recommended properties, same values (price, rating, dates) and, on a site with separate URLs, `url` and `item` properties pointing to the mobile URLs.

## How to implement

### Before you start

Common rules:

- **Generate the markup on the server, in the shared template.** A single JSON-LD block per type, rendered whatever the device. This is the most reliable way to achieve parity.
- **Hide with CSS, do not remove from the HTML.** A breadcrumb hidden on small screens by a media query keeps its markup; a breadcrumb removed from the DOM loses it.
- **Markup describes visible content.** If you remove the reviews or the price from the mobile page, the corresponding JSON-LD no longer has visible content to describe: restore the content, do not keep the markup on its own. See [align markup with visible content](https://checklist-seo-geo.com/en/schemaorg-structured-data/align-markup-visible-content).
- **Markup injected with JavaScript**: Google reads it if it is present in the rendered DOM, but Google states that dynamically generated `Product` markup can make Shopping crawls less frequent and less reliable. For products, prefer server-side rendering.
- **Google Tag Manager**: if a Custom HTML tag adds JSON-LD, open its trigger and remove any condition on screen width, device type or a desktop-only CSS class.

On a site with separate URLs, the JSON-LD of the mobile page cites the mobile URLs:

```html
<!-- On https://m.example.com/chaudieres/chaudiere-gaz-condensation/ -->
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    { "@type": "ListItem", "position": 1, "name": "Home", "item": "https://m.example.com/" },
    { "@type": "ListItem", "position": 2, "name": "Boilers", "item": "https://m.example.com/chaudieres/" },
    { "@type": "ListItem", "position": 3, "name": "Gas condensing boiler" }
  ]
}
</script>
```

### Rendering comparison script

This Node.js script loads the page on smartphone and on desktop, with Googlebot's user agents, and compares the types found in the rendered JSON-LD and microdata. Install Playwright (`npm i -D playwright && npx playwright install chromium`), save the file as `parite-schemas.mjs`, then run `node parite-schemas.mjs https://example.com/produit/`:

```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 },
  },
};

function collecterTypes(noeud, types) {
  if (Array.isArray(noeud)) {
    noeud.forEach((enfant) => collecterTypes(enfant, types));
    return;
  }

  if (noeud === null || typeof noeud !== 'object') {
    return;
  }

  if (noeud['@type']) {
    [].concat(noeud['@type']).forEach((type) => types.push(type));
  }

  Object.values(noeud).forEach((valeur) => collecterTypes(valeur, types));
}

async function lire(browser, profil) {
  const context = await browser.newContext(profil);
  const page = await context.newPage();
  await page.goto(url, { waitUntil: 'networkidle' });
  const { blocs, microdonnees } = await page.evaluate(() => ({
    blocs: [...document.querySelectorAll('script[type="application/ld+json"]')].map((s) => s.textContent),
    microdonnees: [...document.querySelectorAll('[itemtype]')].map((e) => e.getAttribute('itemtype')),
  }));
  await context.close();

  const types = [];
  for (const bloc of blocs) {
    try {
      collecterTypes(JSON.parse(bloc), types);
    } catch {
      types.push('JSON_ERROR');
    }
  }

  return { jsonld: types.sort().join(', '), microdonnees: microdonnees.sort().join(', ') };
}

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)) {
  console.log(`${cle}\n  mobile  : ${mobile[cle] || '(none)'}\n  desktop : ${desktop[cle] || '(none)'}`);
  if (mobile[cle] !== desktop[cle]) {
    ecarts++;
  }
}
console.log(ecarts === 0 ? 'Full parity.' : 'MISMATCH detected.');
process.exit(ecarts === 0 ? 0 : 1);
```

Run it on one URL per template: home page, category, product or service page, article, contact page.

### Apache

Versions: Apache 2.4, mod_headers module.

The server does not produce the markup, but a site using dynamic serving must send `Vary: User-Agent` so that caches do not mix up the versions:

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

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

### Nginx

Versions: Nginx 1.24 and later.

Same header for dynamic serving, in the block that serves the HTML:

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

If an Nginx page cache is active, the cache key must distinguish mobile from desktop; otherwise, mobile HTML without markup may be served to everyone. Reload with `sudo nginx -t && sudo systemctl reload nginx`.

### Cloudflare

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

Without HTML caching, there is nothing to do. With a cache rule that caches HTML on a site using dynamic serving, enable “Cache by device type” in the cache key of the [rule](https://dash.cloudflare.com/?to=/:account/:zone/caching/cache-rules) and purge after each fix. A Worker or a transform rule that rewrites the HTML must not remove any `application/ld+json` block depending on the device.

### WordPress

Versions: WordPress 6.4 and later; Yoast SEO 28, Rank Math 1.0 and SEOPress 10, November 2026 versions.

SEO plugins (Yoast SEO, Rank Math, SEOPress) generate their JSON-LD graph in `wp_head`, on the server, for every device. Differences come from elsewhere:

- **Page builders**: when Elementor or a theme hides a block on mobile (“Hide On Mobile”), it does so with CSS, so the markup stays. A block duplicated in two versions, one for desktop and one for mobile, may on the other hand carry microdata in only one of them: compare them.
- **Review widgets**: check that the script injecting `AggregateRating` loads on every device or, better, that the plugin writes the markup on the server.
- **WooCommerce**: product markup is output on the server by WooCommerce or the SEO plugin; a separate mobile theme must call the same hooks.
- **A separate mobile cache**: purge both sets of files after any markup change.

### Shopify

Versions: Online Store 2.0 themes, including Horizon and Dawn, all plans, November 2026.

Product markup comes from the theme. Recent themes use the `structured_data` Liquid filter, which outputs a `Product` for a product without variants and a `ProductGroup` for a product with variants:

```liquid
<script type="application/ld+json">
  {{ product | structured_data }}
</script>
```

Place this block in the main product section, which is rendered for every device. Do not put it in a block that the theme settings only display on desktop. Also check that review apps do not add a second, incomplete `Product`.

### PrestaShop

Versions: PrestaShop 8 and 9, Classic and Hummingbird themes.

The Classic and Hummingbird themes output JSON-LD on the server, in the `templates/_partials/microdata/` templates (`head-jsonld.tpl`, `product-jsonld.tpl`, `product-list-jsonld.tpl`), included whatever the device; many modules add more. Test a product page on smartphone and on desktop; if a mobile theme or device detection module is installed, compare the product templates of both themes. Clear the cache in `Advanced Parameters > Performance`.

### Magento

Versions: Magento Open Source and Adobe Commerce 2.4.6 to 2.4.9, Luma theme.

Product microdata lives in the theme templates. If a user agent design rule applies a different theme to smartphones (`Content > Design > Configuration`), markup added to one theme must also be added to the other. The safest option is to delete the rule and keep a responsive theme. Flush the cache with `bin/magento cache:flush`.

### Drupal

Versions: Drupal 10 and 11; Schema.org Metatag module 3.x, with Metatag 2.x.

The Schema.org Metatag module outputs JSON-LD on the server, identical for every device with a responsive theme. Just check blocks whose visibility depends on a device condition.

### Wix

Versions: Wix Editor, all plans, November 2026.

Wix automatically adds markup for its pages and apps (store, blog) and lets you add more in each page's SEO settings; it applies to both displays. Watch out for elements hidden in the mobile editor: Wix removes them from the mobile page, and any markup they carry disappears with them.

### Squarespace

Versions: Squarespace 7.1, all plans, November 2026.

Markup is generated automatically and is identical for every device. Code added through Code Injection also applies everywhere.

### Webflow

Versions: Webflow, all site plans, November 2026.

Custom `<head>` code (page or collection template settings) applies to every breakpoint. An element hidden at a breakpoint is hidden with CSS: its microdata stays in the HTML.

### Laravel

Versions: Laravel 10 to 13; spatie/schema-org 3 to 5 (version 5 requires PHP 8.4).

Generate the JSON-LD in the layout or the view, outside any device condition. With the `spatie/schema-org` package:

```php
use Spatie\SchemaOrg\Schema;

$breadcrumb = Schema::breadcrumbList()->itemListElement([
    Schema::listItem()->position(1)->name('Home')->item(url('/')),
    Schema::listItem()->position(2)->name($category->name)->item(route('categories.show', $category)),
]);
```

```blade
{!! $breadcrumb->toScript() !!}
```

Look for conditions wrapping it: `grep -R -n -i "isMobile" resources/views`.

### Symfony

Versions: Symfony 6.4, 7.4 and 8.x, Twig 3.

Place the JSON-LD block in the page's Twig template, outside any device condition, and encode the data with the `json_encode` filter rather than by hand. Clear the cache after changes.

### Next.js

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

Render the JSON-LD in a server component, in the page itself:

```tsx
export default async function ProductPage({ params }: { params: Promise<{ slug: string }> }) {
  const { slug } = await params;
  const product = await getProduct(slug);
  const jsonLd = {
    '@context': 'https://schema.org',
    '@type': 'Product',
    name: product.name,
    image: product.images,
    offers: { '@type': 'Offer', price: product.price, priceCurrency: 'EUR', availability: 'https://schema.org/InStock' },
  };

  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd).replace(/</g, '\\u003c') }}
      />
      {/* page content */}
    </>
  );
}
```

Do not place it in a component displayed conditionally based on screen size (`useMediaQuery` or equivalent): on mobile, it would never be rendered.

### Nuxt

Versions: Nuxt 3 and 4.

Add the block with `useHead` in the page, rendered on the server:

```ts
useHead({
  script: [{ type: 'application/ld+json', innerHTML: JSON.stringify(jsonLd) }],
});
```

Keep it independent of any device detection.

### Astro

Versions: Astro 5 to 7.

JSON-LD written in the page component is generated at build time, identical for every device: `<script type="application/ld+json" set:html={JSON.stringify(jsonLd)} />`.

## Common mistakes

- **Testing only with the validator in code mode**: you validate the markup you pasted, not the markup the mobile version actually serves.
- **Removing the breadcrumb from the mobile HTML**: the microdata `BreadcrumbList` goes with it.
- **A review widget lazy-loaded on desktop only**: `AggregateRating` is missing from the mobile index.
- **Desktop URLs in the markup of an `m.` site**: the `url` and `item` properties must cite the mobile URLs.
- **Keeping the markup for content removed from the mobile page**: markup must describe visible content.
- **Forgetting caches** after a fix: the old mobile version is still served.

## Frequently asked questions

### Must structured data be identical on mobile and desktop?

Yes. Google asks for the mobile version to carry the same structured data as the desktop version, because it indexes the mobile version. Markup present only on desktop is ignored, and the corresponding rich results disappear. On a site with separate URLs, the only accepted difference is that the URLs cited in the mobile markup point to the mobile pages.

### How do I test the structured data of the mobile version?

Google's Rich Results Test crawls a URL with a smartphone agent by default: it is the most direct check. Note the items detected, run the test again with the desktop agent and compare the two lists. In addition, the Search Console URL Inspection tool shows, in its Enhancements & Experience section, the markup found in the version Google crawled.

### Is JSON-LD injected by JavaScript or Google Tag Manager read on mobile?

Google reads JSON-LD present in the rendered DOM, including when it is injected by JavaScript or Google Tag Manager, provided the script also runs on mobile. Check the tag's trigger: a condition on screen width is enough to deprive Googlebot Smartphone of the markup. For products, Google recommends server-rendered markup instead, which is more reliable for Shopping.

### Does hiding a block on mobile remove its structured data?

It depends on the technique. A block hidden with CSS, by a media query or a page builder class, stays in the HTML: its markup is kept. A block removed from the HTML by the theme, by conditional rendering in JavaScript or by the mobile editor of some platforms such as Wix disappears, along with its microdata. Test the page on smartphone to find out.

## 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: Generate structured data with JavaScript](https://developers.google.com/search/docs/appearance/structured-data/generate-structured-data-with-javascript?hl=en)
- [Google Search Central: General structured data guidelines](https://developers.google.com/search/docs/appearance/structured-data/sd-policies?hl=en)
- [Google Search Central: Breadcrumb (BreadcrumbList)](https://developers.google.com/search/docs/appearance/structured-data/breadcrumb?hl=en)
- [Search Console Help: URL Inspection tool](https://support.google.com/webmasters/answer/9012289?hl=en)
- [Shopify: structured_data Liquid filter](https://shopify.dev/docs/api/liquid/filters/structured_data)
- [Playwright: Device emulation](https://playwright.dev/docs/emulation)

Next steps: [test with the Rich Results Test and Schema Markup Validator](https://checklist-seo-geo.com/en/schemaorg-structured-data/test-rich-results-test-schema-markup-validator), [check rendered structured data](https://checklist-seo-geo.com/en/javascript-html-rendering/check-rendered-structured-data) and [check internal linking parity](https://checklist-seo-geo.com/en/mobile-first-responsive-design/check-internal-linking-parity).
