How to center view port when changing resolution with maximized/fullscreen window

Godot Version

4.2

Question

So everytime I change the resolution while my window is maximized or full screen the viewport stays stuck at the top right. I havent been able to find a solution to it. Picture for reference.

Did you set your user interface anchors? What are your project settings for the window stretch mode?

All Ui anchors have a control node set to full rect and every child element is set to that node. As for project settings the window Stretch mode is set to viewport and Aspect set to expand