Simulate device in Webrender

Hi,

I would ideally like to simulate a mobile device in the webrender, the same way you can do it with Chrome developper tools.
I red a similar feed which was not updated, but in my case only changing the resolution is not working. I would like to open instagram in a mobile web browser, not to have to deal with their API (which is very limited)

Any idea how can this be achieved or this is a dead end?

Thanks!

digging a bit more, I found out that the browser need the info that the device has a touch screen.
I’ve been looking into chromium option as “–touch-devices” or “–touch-events” without success so far

Hm, wonder what else is necessary - I just also tried --use-mobile-user-agent with no success. Maybe the user agent string needs to be specified according to the article here:

cheers
Markus

Thanks for the lead Markus!
In the end it was --user-agent="string of mobile user agent"
it’s working now!

Best

Maxime

3 Likes