This code only let me to display a rescaled canvas.
cy.get('#canvas').then(cnv => {
cnv[0].style.width = '1222px';
cnv[0].style.height = '644px';
})
In fact for example cnv[0].width returns the old width value.
If I change it the canvas will be cleaned.