How to Set Different Scene Sizes for Landscape and Portrait in Cocos 3.8.2

I’m working on a Cocos Creator 3.8.2 project where I have different scenes in both landscape and portrait orientations. However, in the project settings, I can only set a single width and height for all scenes, which makes it difficult to switch between them dynamically.
Is it even possible to have different scene sizes within Cocos itself?

Is there any other way to change the scene size at runtime or configure different scene sizes without manually adjusting the project settings each time?

Any suggestions would be greatly appreciated!
@Tom_k

1.It is a common question for games, you can search the solution from the forum, such as search the key word “resolution policy”. 2.After search the solution for resolution policy, better for you to discuss the solution with your team header or designer