There are several software programs which claim to be able to recover data from an android phone. (I'm assuming that you've got an Android phone, although you've not actually told us). They sometimes require you to 'root' your phone first though which, in itself, can carry risks. (Get it wrong and you may end up with a 'bricked' phone!). So proceed with caution:
https://www.digitaltrends.com/mobile/how-to-root-android/
All of the most popular programs for recovering Android files are listed here:
https://geekflare.com/android-data-recovery/
(Ignore any 'free' programs that you might find by googling though. They're all cons in that, at the very best, all they'll do is to show you that they've found the file you're looking for. You'll then have to pay for a licence key in order to actually recover those files. So be prepared to pay for some suitable software).