To make sure that framing in your active viewport has the same proportions as your render output, go to Views > Viewport Configuration... > Safe Frames and check "Show Safe Frames in Active View".
You can also enable it by right-clicking on the name of your active viewport and selecting "Show safe frames" or simply by pressing Shift+F.