The cupboard approach works well for environmental protection, but I'd add one critical detail most folks overlook: airflow. The Cerbo GX dissipates heat through its casing, and I've seen units throttle performance or shut down entirely when mounted in sealed spaces during summer.
If you're going the cupboard route like @AnneWatson, leave at least 50mm clearance on top and sides. Better yet, drill a couple of 25mm vents and fit them with weather-resistant mesh — keeps debris and moisture out whilst maintaining passive airflow.
I've got mine mounted on the external wall of my narrowboat using an angled bracket, which lets hot air rise away naturally. Kept it out of direct sunlight and verified with a thermal camera that ambient temperatures around the unit stay within the 0–45°C operating range year-round.
Also worth mentioning: if you're integrating multiple devices (Multiplus, MPPT, battery monitor), the Cerbo's ethernet connections are brilliant, but run your cables through conduit to prevent abrasion. I learned that one the expensive way.
What's your system spec? The heat load varies considerably depending on whether you're running one MPPT or several.