Un-compromising a compromised iPhone?

I have a friend (don’t laugh, it's true!). My friend has an iPhone, which
he uses for work. He has a work-issued iPhone, which he uses for work. He has a personal iPhone, which he uses for personal stuff.

He has a work-issued iPhone, which he uses for work. He has a work-issued iPhone, which he uses for work. He has