MV Change screen size between battles and map

Hi! My first post here, i'll admit i'm i could be mixing up terms here, between resolution and screen sizes, this is essentially what i'd like to do:
I have my game screen withd and height set to 816x624 in Yanfly's core engine, with update real scale set to true, si makes the game (when F4 is pressed) square-ishly framed, with black borders on the sides and smaller ones on the top and bottom, this is how i want it to look like in map, but, when a fight begins, i want the screen to be "normally sized" still black borders on the sides, but not on the top and bottom, so essentially without update real scale set to true, is there a way to turn it off and on via commands? so that when a battle starts the screen, while the transition between map and fight is happening, turns back to normal? or if not, i'm also open to new plugins for screen sizes
theoretically yes, the command to change the screen size can be given at any moment.

Practically there are several problems that require careful timing with this sequence, and it completely depends on the combat plugins if it can work or not.

Original thread: https://forums.rpgmakerweb.com/threads/change-screen-size-between-battles-and-map.183452/