Most likely it's a swim bladder issue. Swim bladder problems can arise from internal infections, damage to the bladder from a hit from another fish, poor water quality, poor diet, over eating, internal parasites, to name a few. What you are looking at on the tail appears to be just the fish's...