What are your water parameters?
The tank, what is the maintenance routine?
How long set up?
Are you familiar with the nitrification cycle? Is the cycled with a developed beneficial bacteria /BB colony, able to process ammonia, nitrite and nitrate?
Any time there is a fish issue check the water. Parameters, temp filtering going as it should.
So if you haven't done a water change in the past few days, do a 25%. If it has been more than a week do a second 25%
pwc right after. Then check the water again for all safe water parameters.
If you do not have a test kit. Do the same thing the next day. This will gently provide the fish with cleaner water and see if it begins to act more normal.
If so... the next day do another
pwc, but appx 30%. Having a test kit, liquid master kit is ideal, helps you to know when there is a dangerous condition for the fish.
Test strips are not to be relied on when the life of a fish is at stake.
Also the tattered fish tail /fins could be bullying or degrading due to poor water, and sick fish can often be bullied. Vicious cycle.