To retrieve deleted data from iPhone X, my option is to use a iPhone data recovery software like
Mac iPhone Data Recovery. Now there are so many iPhone data recovery software on the Internet, you can choose one that you like to have a try. Mos of them can help you recover lost data, but not each one work on faster speed with no data loss in recovering process. You can use this program to recover data in 3 steps. First to install and running it on any accessible computer, second to scan all data from iOS devices, iTunes backup files or iCloud backup files. Third to recover the data you want. To check more info on
Tuneskit.
Read more:
iOS System Recovery Mac