Deutsch

Dynamic serving is a mobile configuration in which one URL returns different HTML depending on the device. The server reads the User-Agent request header and sends either the desktop or the mobile version. In SEO the term is narrower than “dynamic website” or “dynamic content”.

How does it work?

Google lists dynamic serving as one of three mobile setups, next to responsive design and separate URLs. It delivers different HTML from the same URL using user-agent detection and the Vary: user-agent response header. MDN explains that Vary tells caches which request headers influenced the response, so they store a separate copy for each value. Without it, a cache can hand the desktop version to a phone.

MDN’s caching guide notes that the User-Agent header has a very large number of variations, which drastically reduces the chance that a cache is reused. Google recommends responsive design because it is the easiest pattern to implement and maintain.

Dynamic serving differs from dynamic rendering, where crawlers get a pre-rendered HTML version of a JavaScript page. Google describes that as a workaround.

Mobile site configurations compared
ConfigurationURLHTMLTechnical signalsGoogle's position
Responsive designsame URL on every devicesame HTML; the layout adapts to the screen sizenone needed; content and metadata are identical on mobile and desktoprecommended as the easiest pattern to implement and maintain
Dynamic serving (this term)same URL on every devicedifferent HTML per device, chosen by user-agent detectionVary: user-agent response headersupported; the mobile version needs the same content as desktop
Separate mobile URLsa separate URL per device, e.g. m.example.comdifferent HTML per devicemobile page: rel="canonical" to the desktop URL; desktop page: rel="alternate" with media to the mobile URL; redirects based on user agent and Varysupported; the desktop URL is always canonical, and hreflang links mobile to mobile and desktop to desktop

Google uses the mobile version of a page, crawled with the smartphone agent, for indexing and ranking (mobile-first indexing). Only the content shown on the mobile version is used for indexing. Google's best practices on signals and content parity apply to dynamic serving and separate URLs only; with responsive design, content and metadata are the same anyway. Sources: Google Search Central: Mobile site and mobile-first indexing best practices (last updated 2025-12-10); MDN: Vary header. Last checked: .

Example

HTTP
GET /page HTTP/1.1
User-Agent: Mozilla/5.0 (iPhone; ...)

HTTP/1.1 200 OK
Vary: User-Agent

A desktop browser requesting the same URL receives different HTML and the same Vary header.

Common mistakes

  • Vary: User-Agent is missing, so a cache serves the wrong version.
  • The mobile HTML has less content than the desktop HTML, although Google indexes the mobile version.

Sources

  1. Mobile sites and mobile-first indexing – Google Search Centraldevelopers.google.com
  2. Vary header – MDN Web Docsdeveloper.mozilla.org
  3. Dynamic rendering as a workaround – Google Search Centraldevelopers.google.com
  4. HTTP caching, Vary – MDN Web Docsdeveloper.mozilla.org

Last updated: