Hey Brayan,
So to start off, density is defined as mass/volume. If the number in the numerator keeps increasing while the number in the denominator is constant, the quotient (density) will increase. Here's an example, with some arbitrary numbers and units.
Density= 100 grams/20mL
Density= 5 grams/mL
Now let's see what happens if we keep the volume constant, but increase the mass.
Density= 200 grams/20mL
Density= 10grams/mL
When in doubt, always try to plug in some random numbers and see if you can find a trend.
Hope this helps!