You can use AssistiveTouch restart to restart and power down your iPhone without pressing a button. To make clicking easier on iPhone X and later models, you can adjust the speed of the double/triple clicks.
iGeeksBlog
iPhone X - Wikipedia
Settings On Your iPhone That Are Ruining Your Experience
No Service on iPhone? Try these 10 fixes! - iGeeksBlog
images.wondershare.com/drfone/article/2017/06/1496
How To FIX iPhone Power Button Not Working!
iPhone power button not working? Quick fixes! - iGeeksBlog
iPhone Flashlight not working? 12 Ways to fix it - iGeeksBlog
How to restart iPhone without using Power and Home button - iGeeksBlog
iMessages Out of Order on iPhone and iPad? Here is the Fix
iGeeksBlog
Live Stickers not working on iPhone in iOS 17? 13 Ways to fix it
iGeeksBlog
iPhone Home button not working? 9 Ways to fix it! - iGeeksBlog