Free auditStart free
GlossaryGlossary · Crawling and indexing

Dynamic serving

Dynamic serving returns different HTML from one URL depending on the device. How the Vary header fits in, how it compares to responsive design, and a check.

2 min
read
2
sources
Oct 30, 2026
updated
Scaplet Editorial Team
author
In one line

Dynamic serving is a mobile setup where one URL returns different HTML depending on the requesting device, detected from the user agent. Google says it relies on user-agent sniffing and the Vary: user-agent response header, and recommends responsive design instead because it is the easiest pattern to implement and maintain.

30-second check

Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode

At a glance

4 facts from the sources below
Same URL for every device
URL
User-agent sniffing
Detection
Vary: user-agent
Required header
Responsive web design
Google's preference
01At a glance

Three ways to serve mobile, compared

Google's mobile-first indexing guide names three configurations. Dynamic serving sits between the other two: the URL doesn't change, but the HTML does.
Configuration

Responsive design

URLs
One URL per page
HTML
Same HTML for every device
Relies on
Nothing device-specific on the server
Configuration

Dynamic serving

URLs
One URL per page
HTML
Different HTML per device
Relies on
User-agent sniffing and Vary: user-agent
Configuration

Separate URLs

URLs
A URL per device (such as an m. host)
HTML
Different HTML on separate URLs
Relies on
The user agent and Vary headers, to redirect users to the right version

Google's guidance on mobile-specific advice applies only to dynamic serving and separate URLs. If you run responsive design, there is nothing in that guide to do.

03Check it

Check it in 2 minutes

Also confirm the mobile variant carries the same primary content, structured data and links as desktop, since Google uses the mobile version for indexing. See mobile-first indexing.

Compare mobile and desktop responses
M='Mozilla/5.0 (Linux; Android 13; Pixel 7) AppleWebKit/537.36 Chrome/120 Mobile Safari/537.36'
D='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/120 Safari/537.36'
curl -sI -A "$M" https://example.com/ | grep -i '^vary'   # want: Vary: User-Agent
curl -s -A "$M" https://example.com/ | wc -c
curl -s -A "$D" https://example.com/ | wc -c            # different sizes = variants exist
04Your call

When to keep it, when to move

If this fits

Keep dynamic serving if

  • The mobile and desktop templates really are different and a rebuild isn't planned
  • Your server already sets Vary: User-Agent consistently
  • Content, metadata and structured data match across both variants
Or

Move to responsive design if

  • You maintain two templates that drift apart
  • You're redesigning anyway: Google calls responsive the easiest to implement and maintain
  • Cache behavior or crawler detection keeps causing bugs
Sources · 2

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • google.com
  • mozilla.org
  1. 01Mobile-first indexing best practicesdevelopers.google.com · checked 2026-11-01
  2. 02Vary header (MDN)developer.mozilla.org · checked 2026-11-01
Questions

Asked a lot.

1 questions people ask next, answered from the sources on this page.

01Is dynamic serving the same as dynamic rendering?

No. Dynamic serving changes HTML by device on the same URL. Dynamic rendering serves a rendered version to bots instead of client-side JavaScript. See the dynamic rendering entry.

Free · 2 minutes

Know the term. Now check your site.

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly