Even if the display of your phone or tablet with iOS/iPadOS or Android is damaged and operation is impossible, there are various ways to recover your data. However, there is no guarantee of success.
The easiest way to save yourself from stress is with regular backups. Google Photos, Google Drive, and automatic contact sync ...
Android's latest Play Services update now ensures your Theft Protection settings are automatically backed up and restored.