Short answer
Website developers determine your device type by reading your browser's User Agent string and testing for specific technical features like touch support and WebGL capabilities. They combine these signals with your viewport dimensions to guess your screen size. No single method is perfect, so sites rely on a combination of these data points to build a reasonable picture of your hardware.
What the check does
When you load a page, the browser automatically sends a text string called the User Agent. This string contains the name of your browser, operating system, and sometimes your device model. Additionally, the website's code can run simple tests to see if your screen supports touch input, specific graphics features, or certain storage options. These checks are performed instantly in the background. They are not intended to spy on you but to ensure the site loads the correct images, scripts, and layouts for your specific environment.
How to read the result
Think of the detection process as a handshake. First, the browser states who it is (User Agent). Then, the website asks specific questions like "Do you have a touchscreen?" or "How wide is your screen?" You can verify these results by using a device information tool. If a website claims you are using an iPhone but detects no touch support, it may be a simulation or an extension altering your signals. Cross-referencing the User Agent with feature tests helps identify inconsistencies. If the data looks wrong, check if you are in private mode or using zoom, as these can sometimes alter default reporting.
What the values mean
| Signal | Source | Meaning |
|---|---|---|
| User Agent | Browser Header | Textual declaration of OS and Browser version |
| Touch Support | Feature Detection | Indicates if the device has a touchscreen |
| Viewport Width | CSS Media Queries | Determines layout breakpoints for responsive design |
| WebGL | JavaScript API | Confirms hardware graphics capabilities |
| Device Memory | Performance API | Rough estimate of RAM for performance tuning |
Common questions
- Does the User Agent lie? Yes, users can modify it, and some browsers genericize it for privacy.
- Is feature detection better? Often, because it tests what the browser can actually do rather than what it claims to be.
- Do private mode change results? Sometimes. Private modes may restrict access to storage or hide previous session data.
- Can extensions affect detection? Yes. Ad blockers or privacy extensions can modify headers or block certain APIs.
Try it live
You can check your current signals by visiting our Device Information tool. It will display your live User Agent string and detected features so you can compare them against your physical hardware.
Limitations
Browsers are increasingly withholding specific hardware details to protect user privacy. For example, the exact device model is often replaced with a generic "WebKit" string on many modern mobile browsers. Furthermore, browsers may report maximum memory values instead of current usage, and WebRTC APIs can be filtered to prevent IP address leaks. Therefore, any tool or website claiming to identify your exact phone model with 100% certainty should be viewed with skepticism. The web platform is designed to be generic by default to ensure safety and compatibility across diverse environments.