When temperature of liquid is increased, liquid gets thinner and thinner and hence it's viscosity decreases.
Density = mass/volume.
As we increase the temperature, volume of the liquid starts to increase but mass of the liquid remains constant. As a result, density of liquid decreases.
Hope this helps!