The bug report is three lines long: the checkout button overlaps the total on my phone, it works on my laptop, please fix. No screenshot, no device name, no browser. Attached, almost as an afterthought, is a user agent string your support tool captured automatically. That string is the most useful part of the report. Parsed properly, it tells you the device class, the browser and version, the engine and the operating system the bug lives in. It tells you all that before you touch a single test device. This guide shows how to turn a raw string into a reproduction plan with the free User Agent Parser on Ovatly.
Contents
- Quick answer
- What the string in a bug report gives you
- How to parse the string and plan the reproduction, step by step
- Worked example: an iPhone bug report
- Reading the four fields for a layout bug
- Limitations
- Common mistakes
- FAQs
- Conclusion
Quick answer
Do not start by testing on your own phone. Take the user agent string from the bug report and paste it into the User Agent Parser. Read the four fields it returns: browser and version, engine, operating system and device type. Then reproduce the bug in the closest environment you can build to that combination. Aim for the same browser family or engine. Use the same operating system where you can manage it. Keep the same device class. The parser identifies the client that saw the bug. It does not show you the broken layout itself. So the parse is the start of the debugging session, not the end of one.
What the string in a bug report gives you
A user agent string is the line of text the visitor's browser sent with its requests. Support tools, analytics and server logs routinely capture it. They capture it even when the reporter volunteers nothing else. Support teams and developers use it to understand analytics rows and to reproduce a visitor's bug report. It encodes the environment in token form. For a layout bug, the environment is usually the whole story. The same page renders through a different engine, at a different size, on a different operating system. The string will not describe the bug, but it tells you where the bug lives. Debugging in the wrong environment can waste hours. You end up proving that code works somewhere it was never broken.
How to parse the string and plan the reproduction, step by step
- Find the full user agent string in the bug report, the ticket metadata or your logs, and copy it exactly, without trimming it.
- Open the User Agent Parser and paste the string in. If you want a comparison point, the page can also load your own browser's string at a button press.
- Read the breakdown: browser and version, engine, operating system and device type.
- Write down the combination as your reproduction target: this engine, this operating system family, this device class.
- Reproduce in the closest environment you have: a real device if one matches, a device emulator or a second browser if not, and confirm the bug appears there before you change any code.
- Remember the honesty note from the tool: a user agent is a claim the client makes, and it can be spoofed. If the parsed result contradicts everything the reporter says, trust the reproduction attempt over the string.
Parsing happens locally on the page, so a visitor's string from a support ticket is not sent anywhere.
Worked example: an iPhone bug report
The tool's own worked example covers the desktop case. The string Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 parses as Chrome 120.0.0.0, engine Blink, operating system Windows 10 / 11, device Desktop. Now take the mobile counterpart from the same example. A bug report arrives with an iPhone string that carries a Version/17.2 token and a Mobile token. Parsed, it reads: browser Safari, operating system iOS 17.2, device Mobile. Compare the two targets. The desktop report points you at Chrome on a large screen. The iPhone report points you at Safari on iOS. That means a different engine lineage and a small touchscreen. It is exactly where an overlapping checkout button would appear. Testing the iPhone bug in desktop Chrome first would very likely show you a page that works, and tell you nothing.
Reading the four fields for a layout bug
Browser and version tell you whose implementation you are dealing with, and roughly how old it is. Engine is the field layout bugs care about most. The engine renders the page. Browsers that share an engine tend to share rendering behaviour. A different engine is a genuinely different test. Operating system matters for two reasons. The same browser can behave differently across platforms. And system-level text sizing and scrolling behaviour leak into layouts. Device type separates desktop from mobile, which for a layout bug usually means a narrow viewport and touch instead of a mouse. One caution from the parser's own notes: frozen tokens blur some fields. Windows NT 10.0 is reported as Windows 10 / 11 because the string alone cannot distinguish the two. So treat the operating system field as a family, not a precise edition.
Limitations
The honest limit is the important one: the parser identifies the client, and nothing more. It does not fetch the page, render it or show you the broken layout. So it cannot confirm the bug, locate the faulty rule or prove a fix. It also cannot give you detail the string does not contain. The exact phone model token appears mostly on Android. iPhones and iPads identify only their family. Newer Android versions reduce model detail as well. Modern browsers deliberately reduce the detail in their strings. A string can also be spoofed. So a parsed result is a good indication of the environment, never proof of it. Unknown or future browsers show as Unknown rather than being guessed into a wrong match. When that happens, the string has simply run out of information to give you.
Common mistakes
- Testing on your own phone first. Your device is one environment; the bug lives in the reporter's. Parse the string and match their environment instead.
- Reading only the browser name. The engine and device type fields usually matter more for a layout bug than the brand on the browser.
- Trimming or tidying the string. A shortened string can lose the token that identifies the browser or device. Paste it whole.
- Assuming the model from the family. An iPhone string identifies the family, not the model, so do not promise a fix verified on a specific handset you never identified.
- Treating the parse as the diagnosis. The parse tells you where to look. The bug still has to be reproduced and fixed there.
- Skipping the reproduction confirmation. If the bug does not appear in the parsed environment, say so and ask for more detail rather than closing the report as unfixable.
FAQs
What can a user agent in a bug report actually tell me? Four things: the browser and its version, the rendering engine, the operating system and the device type, such as desktop or mobile. Together they describe the environment the bug was seen in, which is what you need to reproduce it.
Can the parser tell me the exact phone model to test on? Sometimes. The model token appears in the string mostly on Android. iPhones and iPads identify only their family. Newer Android versions reduce this detail too. So expect a device class rather than an exact model.
Why does the engine matter for a layout bug? The engine is the part of the browser that renders the page, and layout behaviour follows the engine more than the browser name. Two browsers sharing an engine tend to break the same way; two with different engines often do not.
Is the user agent from a bug report uploaded anywhere when I parse it? No. On the User Agent Parser, loading a string and parsing it both happen locally on the page. So a visitor's string from a support ticket is not sent to a server.
What if the parser shows Unknown for a bug report's string? Unknown or future browsers show as Unknown rather than being guessed into a wrong match. Fall back to asking the reporter which browser and device they used, and test on the closest match you have.
Conclusion
A thin bug report with a user agent attached is not thin at all. Parsed, the string hands you the device class, browser, engine and operating system to reproduce in. It keeps you from debugging in an environment where the bug never existed. It still only identifies the client, so the real work, reproducing and fixing the layout, happens after the parse. These strings mislead often when they are read carelessly. If you want to know why, the companion guide on user agent mistakes and why UA sniffing gives wrong answers covers the failure modes. More tools for this kind of work are collected in the Developer Tools guide category.