You mean you want to unlock the screen passcode on your iPhone XS Max? If this is the case, you can try iTunes or iCloud to help you. This is the method that Apple offers. Please note that using iCloud needs you to have enabled Find My iPhone on your device. Besides, if your iPhone has not been synced with iTunes before, you need to put it into recovery mode first and then restore it with iTunes.
Bonus tips: an unlocking tool is also able to help you to unlock your iPhone passcode. For example, Joyoshare iPasscode Unlocker, Wondershare iPhone Unlock.