If youâre trying to access a website that blocks certain mobile devices, websites usually detects your browserâs user agent to check the type of device youâre using. But did you know that web browser has actually a settings for it where you can mock your device information into a different device.

How to Change User Agent
To change your browserâs user agent, you need to open Developer Tools. You can find this by clicking 3 dot or the hamburger icon in your browser then More Tools > Developer Tools. Or simply press CTRL + Shift + i.
By default, the Developer Tools will pop up at the bottom of your browserâs current tab. At the upper right corner of it, click the 3 dot icon âCustomize and control DevToolsâ, then go to More Tools > Network Conditions.
From here, there will be a User Agent. By default, it is set automatically. To change your browserâs user agent. Uncheck the Select automatically.
Then fill-in the user agent of the device that you want to pretend to. For example, mocking your device as a Huawei P30 Pro:
Mozilla/5.0 (Linux; Android 9; VOG-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36
Once youâve done changing your user agent, refresh the page that youâre trying to access and you should able to bypass the device restriction.
If you access the website before doing this, some website may save your device information and you may not still able to access the site after mocking your device. Try clearing browserâs cache or using incognito mode, then redo the step above.
Thatâs it!