How can I remove Dynamic Island from screen recordings on iPhone?

Screen recordings are a great way to capture and share content from the iPhone display. On the iPhone 14 Pro and later, the Dynamic Island is automatically captured. This happens because the Dynamic Island is being used to display the recording countdown and camera in use indicator light.