Viscosity is how well a liquid can flow were as density is the mass per unit volume so if you heat up oil it will become less viscose and flow easier while its density remains about the same.
50cm3 of air is less dense than 50cm3 of lead as though they occupy the same volume their mass is different
hope that helps