What does Google say about SEO? /
Quick SEO Quiz

Test your SEO knowledge in 3 questions

Less than 30 seconds. Find out how much you really know about Google search.

🕒 ~30s 🎯 3 questions 📚 SEO Google

Official statement

Serving different mobile/desktop versions based on the user agent rather than the viewport should not cause major problems for Google, as long as the content is present and equivalent. The user agent should be sufficient for Google, although the viewport is generally recommended.
🎥 Source video

Extracted from a Google Search Central video

💬 EN 📅 26/04/2021 ✂ 26 statements
Watch on YouTube →
Other statements from this video 25
  1. Les liens JavaScript retardent-ils vraiment la découverte par Google ?
  2. Pourquoi Google ignore-t-il vos balises canoniques quand le HTML brut contredit le rendu ?
  3. Le noindex en HTML brut empêche-t-il définitivement le rendu JavaScript par Google ?
  4. JavaScript et SEO : peut-on vraiment modifier title, meta et liens côté client sans risque ?
  5. Le JavaScript côté client est-il vraiment un frein pour vos performances SEO ?
  6. HTML brut vs rendu : Google s'en fiche-t-il vraiment ?
  7. Google AdSense pénalise-t-il vraiment la vitesse de votre site comme n'importe quel script tiers ?
  8. Faut-il s'inquiéter des erreurs 'other error' sur les images dans la Search Console ?
  9. User agent ou viewport : quelle détection privilégier pour vos versions mobiles séparées ?
  10. Les liens de navigation JavaScript affectent-ils vraiment le référencement de votre site ?
  11. Peut-on vraiment perdre le contrôle de sa canonical en laissant l'attribut href vide au chargement ?
  12. Quel crawler Google utilise vraiment ses outils de test SEO ?
  13. Les données structurées de votre version mobile s'appliquent-elles aussi au desktop ?
  14. Faut-il vraiment arrêter de craindre le JavaScript pour le SEO ?
  15. Les liens JavaScript retardent-ils vraiment la découverte par Google ?
  16. Pourquoi une balise canonical différente entre HTML brut et rendu peut-elle ruiner votre stratégie de canonicalisation ?
  17. Peut-on vraiment retirer un noindex via JavaScript sans risquer la désindexation ?
  18. Peut-on vraiment modifier les balises meta et les liens en JavaScript sans risque SEO ?
  19. Les produits Google bénéficient-ils d'un avantage SEO caché dans les résultats de recherche ?
  20. Faut-il s'inquiéter des erreurs 'other' dans l'outil d'inspection d'URL ?
  21. Google ignore-t-il vraiment vos images lors du rendu pour la recherche web ?
  22. Les liens générés en JavaScript transmettent-ils vraiment les signaux de ranking comme les liens HTML classiques ?
  23. Une balise canonical vide en HTML peut-elle forcer Google à auto-canonicaliser votre page par erreur ?
  24. Le Mobile-Friendly Test peut-il remplacer l'URL Inspection Tool pour auditer le crawl mobile ?
  25. Pourquoi Google ignore-t-il vos données structurées desktop après le mobile-first indexing ?
📅
Official statement from (5 years ago)
TL;DR

Google confirms that serving mobile/desktop versions based on the user agent rather than the viewport does not pose major indexing issues as long as the content is equivalent between both versions. For SEO practitioners, this means that a dynamic serving architecture remains perfectly valid, even though responsive design is still the official recommendation. The key takeaway: ensure content parity, not uniformity in the technical method.

What you need to understand

What is the actual difference between user agent and viewport?<\/h3>

The user agent<\/strong> is a string of characters that the browser sends to the server with each HTTP request. This technical signature allows the server to identify the type of device (mobile, desktop, bot) even before returning any HTML code.<\/p>

The viewport<\/strong>, on the other hand, operates on the client side: it's a CSS instruction that adjusts the display according to the screen size. In practice, this is the foundation of responsive design—a single HTML version that dynamically rearranges according to available width.<\/p>

Why is this distinction important for Google when it comes to indexing?<\/h3>

Since the shift to mobile-first indexing<\/strong>, Googlebot primarily crawls with a mobile user agent. If your server detects this user agent and sends a different mobile version from the desktop version, Google must be able to access the same content on both versions.<\/p>

The classic risk of dynamic serving<\/strong> (serving different HTML based on the user agent) is creating content discrepancies between mobile and desktop. If the mobile version is deficient, Google will not index certain sections that are present on desktop. This is the scenario that Martin Splitt emphasizes: as long as the content is equivalent, the detection method matters little.<\/p>

What does 'equivalent content' mean for Google?<\/h3>

Equivalence does not mean pixel-perfect identity<\/strong>. Google tolerates layout differences, block order, or even simplified navigation on mobile. What matters is that the main texts, structuring images, structured data, and major internal links must be present in both versions.<\/p>

A common pitfall: hiding content via CSS on mobile (display:none) while keeping it in the HTML. Technically, this is 'equivalent' for Google, but be wary of degraded UX signals that may indirectly impact ranking. Equivalence must be functional<\/strong>, not just formal.<\/p>

  • User agent<\/strong>: server detection, different HTML based on device (dynamic serving)<\/li>
  • Viewport<\/strong>: client detection, a single HTML that adapts (responsive design)<\/li>
  • Google indexes mobile-first<\/strong>: the bot sees the mobile version first, regardless of technical method<\/li>
  • Content parity required<\/strong>: texts, images, structured data, and internal links must be equivalent between versions<\/li>
  • Layout differences tolerated<\/strong>: block order or navigation can vary without penalty<\/li><\/ul>

SEO Expert opinion

Does this statement contradict Google's official recommendations?<\/h3>

Not really, but it nuances the doctrine<\/strong>. Google has officially recommended responsive design for years, even downplaying dynamic serving in some communications. However, Martin Splitt confirms here that dynamic serving remains technically viable for indexing.<\/p>

This position reflects real-world conditions: many major sites (e-commerce, media) still use dynamic serving for performance or technical legacy reasons. Google cannot ignore this reality—and certainly, the engine is mature enough to handle these architectures if they are well implemented. However, the operational complexity<\/strong> of dynamic serving (maintenance of two code bases, risks of divergence) makes it a less recommendable option for most projects.<\/p>

In what cases does the user agent still cause issues?<\/h3>

The first critical case: miscalibrated user agent detection<\/strong>. If your server does not correctly recognize the mobile Googlebot user agent, it may send the desktop version when the bot expects mobile content. The result: Google indexes an unoptimized version, potentially impacting Core Web Vitals and mobile UX.<\/p>

The second pitfall: undocumented content discrepancies<\/strong>. You might believe you are serving equivalent content, but in reality, the mobile version hides entire sections, removes strategic internal links, or overly simplifies text blocks. Google will not always alert you via Search Console—you will discover the problem when noticing a drop in visibility on certain queries. [To verify]<\/strong>: Google does not provide any precise threshold for what constitutes 'acceptable content equivalence'.<\/p>

Is it necessary to migrate from dynamic serving to responsive if everything is working?<\/h3>

If your site using dynamic serving performs well, with content parity guaranteed and you manage the technical complexity, there is no urgency to migrate<\/strong>. Splitt's statement confirms this: Google does not impose specific penalties on this architecture.<\/p>

But let's be honest: maintaining two synchronized HTML versions is a resource sink. Every new feature, every A/B test, every design evolution is deployed twice. In the medium term, responsive drastically simplifies the lives of tech and SEO teams. If you are considering a redesign or technical migration, this is the ideal time to switch<\/strong>—not by SEO obligation, but for maintainability reasons.<\/p>

Practical impact and recommendations

How can I verify that my dynamic serving does not impact indexing?<\/h3>

Start with a comparative crawl<\/strong> using Screaming Frog or OnCrawl in mobile and desktop modes. Set up two profiles: one with a mobile user agent (ideally Google's mobile user agent), and the other with a desktop user agent. Then compare critical elements: titles, meta descriptions, extracted textual content, number of internal links, presence of structured data.<\/p>

Next, use the URL inspection tool<\/strong> in Search Console in 'Test URL in Production' mode. Check that Google sees the expected mobile version. If you detect major differences between what your mobile crawl reveals and what Google indexes, it means the user agent detection is malfunctioning or that mobile content diverges too much from desktop.<\/p>

What technical errors should be absolutely avoided in dynamic serving?<\/h3>

Error #1: forgetting the Vary: User-Agent<\/strong> tag in HTTP headers. Without this directive, CDNs and proxies may cache the wrong version and serve it to the wrong device. Googlebot may thus receive desktop HTML while crawling in mobile mode—and your indexing will collapse.<\/p>

Error #2: detecting only a limited list of user agents. Browsers, bots, and devices are constantly evolving. If your server logic cannot recognize a new mobile user agent, it will default to desktop. It's better to have a default mobile detection<\/strong> (mobile-first) with explicit exceptions for desktop, rather than the reverse.<\/p>

What strategy should be adopted for a new project or a redesign?<\/h3>

For any new site, prioritize responsive design<\/strong>. Maintenance is infinitely simpler, the risks of content divergence are almost nonexistent, and you avoid server configuration complexity. Responsive design also aligns better with modern frameworks (React, Vue, Next.js) that naturally generate a single adaptive HTML version.<\/p>

If you inherit a site with dynamic serving that works, don’t panic: audit the content parity, correct the detected discrepancies, and document the user agent detection logic. Plan a responsive migration in the medium term, but without urgency if SEO KPIs are stable. However, as soon as you touch the technical architecture or CMS, seize the opportunity to switch—you will save months of technical debt.<\/p>

These optimizations, while conceptually clear, can reveal unexpected complexities during implementation<\/strong>. Between server configuration, multi-device testing, validation of content parity, and post-migration monitoring, the risk of error is real. If your team lacks resources or specific expertise on these topics, hiring a specialized SEO agency<\/strong> can accelerate diagnosis and secure execution, especially on high-traffic sites where every indexing anomaly carries a direct cost.<\/p>

  • Audit the content parity between mobile and desktop versions via comparative crawl<\/li>
  • Check for the presence of the Vary: User-Agent<\/strong> header on all pages in dynamic serving<\/li>
  • Test the URL in production via Search Console to confirm that Google sees the expected mobile version<\/li>
  • Document the user agent detection logic and plan for a mobile-first fallback strategy<\/li>
  • Plan a responsive migration during the next major technical redesign<\/li>
  • Regularly monitor indexing discrepancies via automated alerts on KPIs (indexed pages, positions, crawl stats)<\/li><\/ul>
    Dynamic serving based on the user agent remains technically viable for Google, but complicates maintenance and increases the risks of content discrepancies. If your site functions this way today, verify mobile/desktop parity and document your configuration. For any new project, responsive design remains the safest and most sustainable path.<\/div>

❓ Frequently Asked Questions

Google pénalise-t-il les sites qui utilisent le dynamic serving plutôt que le responsive ?
Non, Google n'applique aucune pénalité spécifique au dynamic serving tant que le contenu est équivalent entre mobile et desktop. La complexité technique est le principal frein, pas un malus algorithmique.
Dois-je obligatoirement ajouter l'header Vary: User-Agent si j'utilise le dynamic serving ?
Oui, c'est indispensable. Sans cet header, les CDN et proxies risquent de servir la mauvaise version HTML, ce qui peut dégrader l'indexation et l'expérience utilisateur.
Comment savoir si Google indexe bien ma version mobile en dynamic serving ?
Utilise l'outil d'inspection d'URL de la Search Console en mode 'Tester l'URL en production'. Compare le HTML rendu par Google avec un crawl manuel en user agent mobile pour détecter d'éventuels écarts.
Puis-je masquer du contenu en CSS sur mobile sans risque pour l'indexation ?
Techniquement, Google indexe le contenu présent dans le HTML même s'il est masqué en CSS. Mais attention aux signaux UX dégradés (Core Web Vitals, engagement) qui peuvent impacter indirectement le ranking.
Vaut-il mieux détecter mobile par défaut ou desktop par défaut en dynamic serving ?
Détecte mobile par défaut (mobile-first) avec des exceptions explicites pour desktop. Cela s'aligne sur l'indexation mobile-first de Google et réduit le risque de servir du desktop à un bot mobile non reconnu.

🎥 From the same video 25

Other SEO insights extracted from this same Google Search Central video · published on 26/04/2021

🎥 Watch the full video on YouTube →

💬 Comments (0)

Be the first to comment.

2000 characters remaining
🔔

Get real-time analysis of the latest Google SEO declarations

Be the first to know every time a new official Google statement drops — with full expert analysis.

No spam. Unsubscribe in one click.