Check if your enclosure has an extension bracket, like this one: https://www.legrand.us/audio-visual/structured-wiring-enclos...

It adds enough depth to fit plenty of regular-sized components.