OBS studio capture webcam only?
You can grab the corners of the webcam object on the screen and expand it to fit the canvas.  Make sure the webcam source is the correct resolution (in the Sources column, right-click on Video Capture and click Properties, then check the Preset drop down).
Also check the Base (canvas) resolution is the size you want in the Preferences - Video settings.
Animated gif showing the process: