Use mobile user agent in mobile mode
- Epiphany version (from About Web in the main menu):
44.2
- WebKitGTK version (from About Web -> Troubleshooting -> Debugging Information):
2.40.1
- Distributor (Linux operating system, Flathub, Epiphany Tech Preview, etc.):
Flathub
Hey, I am not sure whether to report this to WebKitGTK since this does not seem like an engine issue to me.
Some websites such as DuckDuckGo or Google seem to use the browser's user agent to determine whether it is a mobile device or not, instead of using the viewport's width. This means some elements are too wide for the display. The same behaviour happens on Firefox when resizing the window to be the width of a mobile screen, but when setting the device setting in the Adaptive View mode to a mobile device, say S21 Ultra and reload the page, it displays correctly.
(i've never worked on WebKit or Epiphany, so maybe what im saying here is impossible, but...) So would it be possible to dynamically change the user agent to a mobile device based on the window size. Or maybe only set the user agent at startup, so that only mobile devices have the user agent since the app is started in a mobile view.