Yes simplest is to add an external cabinet, which provides shade, and which has a pair of 120mm AC fans to move lots of air across them, from the bottom air inlet to top air outlet. Shade from the sun with an awning of some sort mounted 300mm above it, and with white outside, and it should run cooler.
Have seen a bank of Sunny Boy inverters at a large commercial solar install that have, in the locked wire mesh enclosure that protects them, a trio of Big Ass fans that provide extra cooling for them, seeing as that area reaches 40C ambient due to it being concrete and tar paved outside. Around 16 of the largest inverters all there, providing a big part of the power for the complex.