WebmasterID logoWebmasterID
User agents

User agents and dynamic serving for SEO

Dynamic serving means returning different HTML to different user agents at the same URL — for example a mobile variant to phones. For SEO this is allowed in principle but risky: if crawlers receive materially different content from users, it edges toward cloaking. Treating search bots the same as the human they emulate is the safe rule.

Verified against primary sources

What this means

Dynamic serving (sometimes called dynamic rendering in a related context) returns different markup based on the requesting user agent while keeping a single URL. A common motivation is delivering a tailored mobile or prerendered variant.

Search engines permit responding to different devices, but they care that the crawler and the equivalent user get consistent content. The risk is that serving search bots something materially different from humans crosses into cloaking, which search guidelines treat as a violation.

Staying on the safe side

The durable rule is: show a search crawler the same content you would show the human it is standing in for. If you serve a mobile variant to phones, the mobile search crawler should get that same mobile variant — not a special bot-only page.

Because user-agent-based branching is fragile and crawler user agents can be emulated, verify behaviour rather than trusting strings, and keep crawler and human content aligned. Where possible, prefer responsive design or client hints over UA-keyed HTML swaps.

How it appears in analytics and logs

When HTML varies by user agent at one URL, a crawler and a human can receive different content. In logs this appears as UA-correlated differences in the response body for the same path.

Diagnostic use case

Decide whether to serve content dynamically by user agent, understand the cloaking boundary, and ensure search crawlers see what equivalent human users see.

What WebmasterID can help detect

WebmasterID records each request's user agent server-side, so you can confirm which variant search crawlers received versus human visitors and catch accidental divergence between them.

Common mistakes

Privacy and accuracy notes

Dynamic serving keys on the request user agent, a client hint, not a person. Any grouping it produces is coarse, and search-bot user agents are crawler claims, not human identities.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.