Resizing issue using delayed scene and scene loader

I can’t get the code to resize my model, the model remains static when I resize the window. Is there a way to fix this?

  let scene = new BABYLON.Scene(engine);

  BABYLON.SceneLoader.Append("file_url", "something.glb", scene, function(
    scene
  ) {
    scene.createDefaultCameraOrLight(true);

    scene.activeCamera.alpha += Math.PI;

    scene.activeCamera.fov = 0.6;

    engine.runRenderLoop(function() {
      scene.render();
    });

    window.addEventListener("resize", function() {
      engine.resize();
    });

    scene.getEngine().onResizeObservable.add(() => {
      if (
        scene.getEngine().getRenderHeight() > scene.getEngine().getRenderWidth()
      ) {
        scene.activeCamera.fovMode = BABYLON.Camera.FOVMODE_HORIZONTAL_FIXED;
      } else {
        scene.activeCamera.fovMode = BABYLON.Camera.FOVMODE_VERTICAL_FIXED;
      }
    });
  });

  return scene;
};

var scene = delayCreateScene()```

Well this looks good so far so we will need a repro to help you further