User agent switcher not working? Check the Client Hints

You picked "iPhone", but the site still shows the desktop page or names your real browser. In Chrome, Edge and other Chromium browsers, the most common reason is that the switcher did not change the Client Hints.

Your browser reports itself in more than one place

The user-agent string is only one of them. Chromium browsers also send User-Agent Client Hints:

WhereWhat it says
User-Agent headerThe classic user-agent string
navigator.userAgentThe same string, read by JavaScript
Sec-CH-UA headerBrowser brands and major versions
Sec-CH-UA-Platform headerOperating system, such as "Windows" or "Android"
Sec-CH-UA-Mobile header?1 for mobile, ?0 for not mobile
navigator.userAgentDataThe same Client Hints, read by JavaScript

A switcher that changes only the first two leaves the rest pointing at your real device. A site that reads Sec-CH-UA-Mobile or navigator.userAgentData.mobile still sees a desktop.

We tested it

We started Chromium 145 and Microsoft Edge 157 on Windows with the --user-agent flag set to an iPhone user agent. The header and navigator.userAgent changed to iPhone. But in both browsers, Sec-CH-UA-Platform still said "Windows", Sec-CH-UA-Mobile said ?0, and navigator.platform said Win32. A real iPhone sends no Client Hints at all, so this combination does not exist on a real device. Full results are in How to change the user agent in Chrome.

Check what the site sees

  1. Turn your switcher on and choose a device.
  2. Open our user agent checker.
  3. Compare the rows. If the user-agent string says iPhone or Android but Sec-CH-UA-Platform says Windows or macOS, the Client Hints were not changed.

Other reasons a switch may not show

A switcher that changes the Client Hints too

We make User-Agent Switcher — UA + Client Hints for Chrome. It changes the header, navigator, iframes and all the Client Hints above together. When you choose Safari or Firefox, it removes the Client Hints, because those browsers do not send them.

With the extension set to an Android phone, the Sec-CH-UA headers and navigator.userAgentData report Android and mobile

Get it on the Chrome Web Store

Free with 13 built-in user agents. Pro is $7.99 once and adds per-site rules and your own strings. Limits: web workers, fonts, screen size and WebGL still show your real device.