If your iPhone X gets stuck in recovery mode, you are suggested to force restart iPhone, Free fix with Joyoshare UltFix with No data loss, update with iTunes or restore iPhone in recovery mode. These are the common solutions you can take. Hope you can get out of this trouble soon.
More: How to Fix iPhone Stuck in Recovery Mode