Does the influence of density have anything to do with mass, volume, temperature, state of matter and pressure

Does the influence of density have anything to do with mass, volume, temperature, state of matter and pressure

The density of a substance (object) is "the mass of a substance (object) per unit volume". For the three states of existence of a substance, the factors that affect the density are as follows: gas. It is very vulnerable to the increase (or decrease) of pressure and the decrease (increase) of volume. When the temperature increases or decreases, the volume increases or decreases