Coral slipped out of its home


Reefing newb
Can anyone please tell me what is the likely fate of this coral. I have had it for about 6 months and it has recently slipped out of its home. It is in a 6 x 2 x 2 foot tank with mixed corals and fish (attached photo) The water parameters are perfect and there has been no sudden changes recently. Is it likely to survive or should i take it out before it dies and pollutes the water?
Coral not home.jpg
Full tank pic.jpg
Was the coral glued down? A lot of it depends on the coral. I had a soft leather mushroom that feel out several times and had it's stem snapped and still keeps popping up.
I'd say it's going downhill. But if your filters can handle it, and if no part of it is turning brown or collecting gel slime, then why not see if it will re-attach and grow.