Hey ffffrf,
First, read this bit of information on nitrite and its affects on your fish by clicking
HERE.
*Nitrite poisoning has very similar signs to not being able to breathe. Even though your water may contain enough oxygen, the nitrites block your fish's blood from using it as it otherwise could.
Second, read this bit of information on helping to promote gas exchange (i.e. adding more dissolved oxygen to water) by clicking
HERE.
Those articles should get you off to a good start but there may be other things to consider as well:
What is the water temp of your tank?
*The higher the water temp, the less oxygen it can hold. However, this does not mean you should lower the temperature if you have raised it for some purpose like treating an illness/disease/parasite, but only that you need to help promote gas exchange a bit more.
Is this only one fish that is doing this or have you noticed or do you think other fish could be doing the same thing?
- If only one fish, is this a fish that has had Ich in the past?
- If so, there may be some Ich that has infected this one fish's gills
- A previous Ich infection could have damaged your fish's gills and coupled with the nitrites in your tank, it may not be able to breathe well and/or use the oxygen in the water efficiently.
- If it is only this one fish, have you noticed any signs of aggression?
- Even though mollies are commonly referred to as 'peaceful' fish, aggression issues can still occur and this may be why your fish is staying in one spot at the top of the tank
- Is your fish eating like it always has in the past?
- Is it still as colorful as before?