The inversion traps the air close to the ground and stops it mixing with the upper atmosphere, thus dissipating its heat.
This suggests that warm air is being trapped at low level. In fact, in an inversion there is a temperature increase with altitude.