A molly swimming with clamped fins is suffering from what is called shimmy. It is not really a disease, it is a reaction to water conditions. Common mollies really need fairly high mineral content in their water. I happen to have water with a pH of 7.8 a GH of over 10 and a KH over 10. It also has a TDS measured at over 225 ppm. For me tap water is great for these fish. For people who live in a soft water location, common pet shop mollies can be a real challenge. They will need to add minerals to their water to experience any success with pet shop mollies. The easiest and most common ways to do that is to add some sea salt, the kind saltwater people use to create their water from tap water, or to add some crushed shell or crushed coral to the filter flow path. Either of these techniques will add to the GH, KH and pH of your water. Either will also lead to the need to continue to control both GH and pH with regular water changes that use the right additives for the tank's chemistry.
Once you start down the road of changing water parameters away from the tap water, you need to stay aware of the need to continue down that path with every water change. I have exactly one tank that has water different from my tap water, out of 25 total. That tank is probably more work, in terms of the care I take looking after it, than all of my other tanks combined.