The mass remains the same given that the number of air molecules remain the same and none did escape into the atmosphere.
As heat is being absorbed by the air molecules, they vibrate more vigorously and the electrostatic forces of attraction between the molecules weaken and they become further apart. Hence there is lesser number of air molecules per volume, indicating that density has decreased.