How to change game.scale.mode during run time

I setup my game this way:

const config : Phaser.Types.Core.GameConfig = {
    type: Phaser.AUTO,
    width: 500,
    height: 700,
    physics: {
      default: 'arcade',
      arcade: {
        gravity: { y: 200 },
        debug: true,
      },
    },
    scene: [GameScene, SettingsScene],
    scale: {
      mode: Phaser.Scale.FIT,
    },
  };
  new Phaser.Game( config );

In my SettingsScene I want an option where I can turn the game.scale.mode to Phaser.Scale.None but I can’t figure out a way to do this from within the SettingsScene class.

Is this possible?

I’m not sure if it’s supported, but you would do

this.scale.scaleMode = Phaser.Scale.NONE;
this.scale.refresh();

scale.refresh() did the trick. Thanks.