How to use mobile emulation to test on view ports?

How to use mobile emulation to test on view ports?

Hey Helen,

The below script will be used.

<button onclick="myFunction()">Try it</button>

<script>
function myFunction() {
    var myWindow = window.open("", "", "width=320, height=460");
}
</script>

Refer below: