Responsive design
- URLs
- One URL per page
- HTML
- Same HTML for every device
- Relies on
- Nothing device-specific on the server
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.
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.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
Vary: user-agentm. host)Vary headers, to redirect users to the right versionGoogle'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.
/pricingUser-Agent request headerVary: User-Agent response headerUser-Agent request header, so they store variants separatelyGET /pricing HTTP/1.1
User-Agent: Mozilla/5.0 (iPhone; ...)
HTTP/1.1 200 OK
Vary: User-Agent
Content-Type: text/html
<!-- compact mobile HTML -->
GET /pricing HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 10.0; ...)
HTTP/1.1 200 OK
Vary: User-Agent
Content-Type: text/html
<!-- full desktop HTML -->MDN describes Vary as listing the request parts that influenced the response, which makes caches store responses separately per listed header. It also says the same Vary value should be used on all responses for a URL, including 304 Not Modified responses.
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.
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 existVary: User-Agent consistently1 questions people ask next, answered from the sources on this page.
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.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.