You can use the Firefox User Agent Overrider add-in. With this add-in, you can use any user agent you want, for example:
Firefox 28/Android: Mozilla/5.0 (Android; Mobile; rv:28.0) Gecko/24.0 Firefox/28.0
If your site detects mobile devices through a user agent, you can test your layout in this way.
Update November '17:
Due to the release of Firefox 57 and the introduction of the web extension, this add-on is unfortunately no longer available. Alternatively, you can change the preference for Firefox general.useragent.override in your configuration:
- In the address bar, enter
about:config - Search for
general.useragent.override - If the preference does not exist, right-click on the about: config page, click Create, then select String
- Name the new preference general.useragent.override
- Set the value for the required user agent
mrt Jun 25 '14 at 5:54 on 2014-06-25 05:54
source share