# Molarity is dependent on temperature?

Okay I know that as the temperature rises the number of particles in a given volume decreases. The molar volume likewise increases. So the number of molecules per liter would decrease as the temperature rises meaning that a 1M solution is only 1M at a specific temperature.

But why is molarity dependent on temperature? I mean sure the density does decrease as the temperature rises but still there is a small chance that the molarity will stay the same.