Simple and very #shorts step-by-step video How to Power OFF the Samsung phone and Remap the Power button!
Here’s what you need to do to make this work:
open the Quick Settings menu and press the Power Off button.
on the screen, select power off.
or press "side key settings" at the bottom of the screen
Set the side key to the phone's power off menu