You may have square or round holes on each side, and customise the size and height of the PCB and the walls of the box.
This rendering fits a 12v bluetooth audio card that I use on my boat.