Definition: to manage to survive, avoid failure or achieve success despite difficulties.
E.g.1. He was losing the fight, but managed to hang on until the final round.
E.g.2. Their star player was sent off early in the match, but they hung on and eventually won by 2 goals to one.
This phrasal verb can’t be separated.