Shahin

Device Type

Beginner
Updated Jul 11, 2026 Shahin editorial 2 min read
PronunciationEN/dɪˈvaɪs taɪp/

Device type is the dimension that files each visit into a coarse hardware class such as desktop, mobile, tablet or smart TV, based on parsing the User-Agent string.

This dimension is not a measurement but the output of a parsing rule, and the rules differ from tool to tool. Tablets are the clearest point of disagreement: since iPadOS 13 an iPad declares a desktop Safari User-Agent by default, so many tools count a large share of these devices as desktop and the tablet row stays unrealistically small. Android tablets are identified by the absence of a Mobile token, which is a fragile rule, while televisions and in-app browsers often fall into an other bucket. The common mistake is using device type as a stand-in for screen size; layout decisions belong to the viewport, and device type only supplies context such as input method, network conditions and usage setting.

FAQ

Sources:MDN — User-Agent header