It matters to mount your inverter in a well-ventilated, dry area.  Your power inverter is not weatherproof, so it needs to be installed where it will be protected from heat and moisture.  Keep a minimum 1 inch clearance around the inverter for ventilation.

The inverter can be mounted in any position as long as the air intake and exhaust vents are free from any obstruction.