I assume you’re talking about the black border around the display, it’s usually caused by the overscan setting being on…

https://www.techcoil.com/blog/how-to-make-your-raspberry-pi-fill-up-your-entire-monitor-screen-by-disabling-overscan-in-raspbian-stretch/