How to use mobile emulation to test on view ports in Pytest?

Is there a way to use mobile emulation to test on view ports in Pytest?

Hi Mark,

To use mobile emulation in Pytest, you need to use the below command:

driver = self.CreateDriver(
        mobile_emulation = {
            'deviceMetrics': {'width': 360, 'height': 640, 'pixelRatio': 3}})