Due to Apples walled garden, its going to be difficult to nearly impossible. I know it's not the answer you want to hear but moving to an Android/ pixel system is going to be far, far easier and will produce better results. Sorry to be the bearer of bad news but that's the reality of the iPhone ecosystem.
I got tired of kodi's shit configuration interface and came across a tutorial for setting this up (pre-reddit enshitification) about a year ago and it has hugely changed how we consume media in our house.
Le Tigre