All fish have a thin clear mucous layer coating their body and fins. This helps reduce drag in the water and is a first line of defence against things that might irritate the skin. Fish kept in poor water quality or fish that are being attacked by parasites will produce more of this mucous to try and reduce irritation and prevent infection.
Fish that produce a cream or white film over their body and fins are just about always in poor water quality. That is to say there is usually ammonia, nitrite or high nitrate levels in the water, or the pH is unsuitable for the fish. Heavy metals and other chemicals in the water will also cause this but 99% of the time it is poor water quality caused by ammonia, nitrite, nitrate or pH. The fish get stressed from the toxins in the water and produce more mucous to protect them from what's in the water.
If the fish get cream, white or grey patches on their body, it is usually a protozoan infection caused by poor water quality, (see "Protozoan infections" below).
If your fish ever get a cream or white film over their body, fins and eyes, do a big (75%) water change, gravel clean the substrate, clean the filter and increase aeration immediately. Do the big water change and gravel clean each day until the problem is identified or resolved.
Make sure any new water is free of chlorine/ chloramine before it is added to the tank.
Big water changes will not affect beneficial filter bacteria or fish as long as the new water is free of chlorine/ chloramine before it is added to the tank.
All external protozoan infections can be treated with any white spot remedy, Heat treatment simply involves raising the tank water temperature to 30C and holding it there for 2 weeks.
You can add rock salt (often sold as aquarium salt), sea salt or swimming pool salt to the aquarium at the dose rate of 1 heaped tablespoon per 20 litres of water. If there is no improvement after 48 hours you can double that dose rate so there is 2 heaped tablespoons of salt per 20 litres.
If you only have livebearers (guppies, platies, swordtails, mollies), goldfish or rainbowfish in the tank you can double that dose rate, so you would add 2 heaped tablespoons per 20 litres and if there is no improvement after 48 hours, then increase it so there is a total of 4 heaped tablespoons of salt per 20 litres.
Keep the salt level like this for at least 2 weeks but no longer than 4 weeks otherwise kidney damage can occur. Kidney damage is more likely to occur in fish from soft water (tetras, Corydoras, angelfish, gouramis, loaches) that are exposed to high levels of salt for an extended period of time, and is not an issue with livebearers, rainbowfish or other salt tolerant species.
Credits;
@Colin_T