I think the RPi itself can also draw a ‘black frame’. Search for the term “overlay”. It is a setting in the /boot/config.txt of RPi sdcard.

But probably the css modification above is more elegant…