iOS iFrame scaling problems

Hello, I have a problem with scaling the game that’s is contained in the iframe. This problem is only on iOS devices, especially on the older ones (there a lot fewer problems on the latest update of the iOS). The game just doesn’t scale properly (twitching, scaling to wrong size, etc.), when the game is in iFrame.
Here are scale manager configs:
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH,
parent: ‘phaser-app’,
width: 1920,
height: 1080
},
I also have a code that changes the game size, when orientation is changed on the mobile devices.

The game needs to be in the iframe, what are possible solutions.