There is a field for it in the project settings, with id “display/window/size/fullscreen” or something. To change it in runtime, use OS.full_screen = true in gdscript to make it fullscreen and false to go back to windowed mode.
OS.full_screen = true
cool..thank you