For installations greater than 1 MW in size, typically, central inverters are used, and these will be set up in a separate room, called the control room, mostly this are big utility scale ground mount projects.
For rooftop installations, string inverters are used, and these are erected on the roof or on the factory floor with wall mount fitting or special fabricated mounting arrangement. Only we need to take care that direct sunlight should not fall on the inverter otherwise inverters comes with IP65 protections.