PINE64
Chromium doesn't seem to recognize that I'm on a mobile device - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: Chromium doesn't seem to recognize that I'm on a mobile device (/showthread.php?tid=12946)



Chromium doesn't seem to recognize that I'm on a mobile device - 3x5co - 01-30-2021

Until recently, Chromium was unusable on Mobian. I'm happy to say that it has quickly pulled into the lead for most usable Mobian browser. However, it often serves up the full, desktop version of siteswith a big, horizontal scroll bar.

Some sites display in the correct, responsive layout. But Google, for instance, runs off the page. Any idea why this is, and how to force it render sites properly?


RE: Chromium doesn't seem to recognize that I'm on a mobile device - ryo - 01-31-2021

Probably some websites assume that "if the UserAgent doesn't suggest that it's a mobile OS or mobile browser, then it has to be a desktop, no doubt about that!!".
Mobian is technically a mobile OS, but the Chromium you run on it is still the desktop version, so I guess in this case you'll need to manipulate the UserAgent (I'm using Qutebrowser which has this functionality built in, but Chromium has extensions for that).

Responsive websites will make use of the screen size, so you'll get to see the "mobile version" regardless of the UserAgent.
Don't ask me what UserAgent you should set it to, I don't bother with that.
I actually prefer the "desktop version" of websites anyway, since that's often the version that doesn't strip away useful information or functionality just to prevent people from scrolling horizontally.


RE: Chromium doesn't seem to recognize that I'm on a mobile device - 3x5co - 02-05-2021

Thank you, changing the user agent fixed this problem!