Borders appear when the captured picture has a different aspect ratio than the recording. Slides in 4:3 shown in a 16:9 recording leave bars on the left and right. A phone held upright inside a landscape recording does the same, and a very wide monitor adds bars at the top and bottom.
The bars are part of the video. If you crop the recording for another format, you take them along and the actual picture gets smaller. More under Remove black bars.