Viewport vertically offsets when I go into pilot camera mode?

Whenever I go Into pilot camera mode, camera view isn’t placed in the middle of the viewport but in the top. This only started happening recently.