Black bar both side

How do I fix this error? When I zoom in on the screen, two black bars appear on both sides

i know exactly how to fix this:
Screenshot 2024-06-23 144444
click on the rectangle and 2 squares, go to properties and under the resolution change to: no changes in the game side

oh wait, thats to change if you want to make the aspect ratio lock in to the resolution