Well, we have to make the distinction between condensed phases, solids and liquids, and non-condensed phases, gases...........
Gases are condensable materials. State functions can be derived that express density from pressure, temperature, and amount of gas variable........
And thus gaseous density is proportional to pressure, and inversely proportional to temperature.
On the other hand, while the expression for density is the same when we deal with solutions in the liquid or solid state, volume is relatively constant:
And thus with respect to pure water, and aqueous solution of some salt is DENSER than that of pure water. And we know this practically from the fact that you are certainly more buoyant in the ocean than in a fresh water pool.