Classic sulfate-based cleansers (such as sodium laureth sulfate with cocamidopropyl betaine) thicken with salt — but only up to a point; past the peak, more salt makes them thinner again. Many sulfate-free surfactants barely respond to salt at all and need a polymer thickener instead. pH and the amount of oils and fragrance also change viscosity.