You can use Iriun to do this. You will need to download the app to your iPhone and install the linux client (a .deb file for Ubuntu 18.04 or higher).
If what's above doesn't work you can try to use Droidcam instead. Follow the instructions to set up the client in the previous link and then download the Droidcam app on your iphone from the App Store!
You can use Iriun to do this. You will need to download the app to your iPhone and install the linux client (a .deb file for Ubuntu 18.04 or higher).
If what's above doesn't work you can try to use Droidcam instead. Follow the instructions to set up the client in the previous link and then download the Droidcam app on your iphone from the App Store!