If it screen resolution emulation you want then you could simply dial in the required resolution.
The User agent string is generally used to identify what kind of device is making the request and could help if your backend differentiates between desktop and mobile clients that way.