Relative entropy inequality for capillary fluids with density dependent viscosity and applications