@polychrome CSS @media queries mostly, wouldn't mind taking a look if you have a concrete casus?
@f0x had some trouble deciphering how to recognize when a device is mobile using @media queries because it only gives me resolutions and orientation, both of which not really distinct from a PC display
@polychrome @f0x yeah, if you really need to know specifically mobile vs desktop, media queries won’t give you that, only a heuristic
that said, what specifically makes you need to know device type and not just viewport/resolution? (not an “i think you don’t really need that and i’m going to be a prick about it” question, i’m genuinely curious!)
@polychrome @alexis forgot the link for reference https://www.w3schools.com/cssref/css3_pr_mediaquery.asp