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

Please help me use mobile emulation to test on view ports in Serenity.

Hi Emma,

To use the mobile emulation, you can use the following code:

 mobile_emulation = {
            'deviceMetrics': {'width': 360, 'height': 640, 'pixelRatio': 3}})