How can I make sure the view port is same for all builds while doing Visual regression test with Cypress on LambdaTest?

I am doing Visual regression test with Cypress on LambdaTest but it looks like the resolution of the screenshots is different. How can I make sure the view port is same for all builds?

Hello Tom-dale,

You can specify the viewport of your Cypress test in the cypress.config.js files like below:

const { defineConfig } = require('cypress')
module.exports = defineConfig({
  viewportWidth: 1000,
  viewportHeight: 660
})