Connect to a Wi-Fi network and ensure that the iPhone battery level is higher than 50 per cent.
Navigate to General > Software Update in the Settings app.
Once the iOS 16.7.1 update is listed, tap on Update Now.
Enter your phone's passcode, to begin the update process.
Wait for your phone to reboot, which should take a few minutes.