title: how to use cypress viewport refresh reload
body: <p>Website is supposed to work only on Mobile web (Shows error message on desktop web), trying to automate the same using cypress viewport.</p>
  
  <p>Manual Test steps: In chrome, We are launching an URL in desktop web application, application display error page. Then change to chrome emulator mode, refresh the application, actual page will be displayed.</p>
  
  <p>Automating using cypress: launching an application, minimizing to mobile view, reloading the application.</p>
  
  <p>expecting, After reloading the page, actual application page should be displayed in the mobile view but error page is displaying in the mobile.</p>
  
  <p>My code looks like below</p>
  
  <pre><code>    cy.visit('url')
      cy.viewport('iphone-6')
      cy.wait(200)
  </code></pre>
  
  <p>Could anyone help on this?</p>