The viewport must be changed. The setting for the main viewport can be found in Scene>Project Settings>Display and width and height.
If you're looking to make a sub-viewport. You should use ViewportSprite and assign it a Viewport. Then set that viewport's size, enable it, and then add the nodes or scenes to it.