Last Friday Safari arrived on a new device: Apple HomeView, which has a square 7-inch display that people mostly use with their voice. WebKit's announcement includes a line that will produce a particular kind of bug report for the next year:
Safari on HomeView also reports an iOS user agent.
So the report will say "iOS Safari". You will pick up an iPhone, open the page, and it will be fine. Not because the bug is not real, but because the report described the wrong thing. It classified the device, and the device class is the one fact that does not decide how a page renders.
A user agent is a claim. A viewport is a measurement.
Everything about how your layout behaves is decided by a handful of numbers the browser can measure directly: the width and height of the viewport, whether the primary pointer is precise, whether it can hover. The user agent is a string that a vendor chose, and on HomeView it says iOS.
WebKit is specific about what that hides.…