How to fix Galaxy S8 that’s unresponsive and screen is black all the time

What to do if Galaxy Note8 System UI app crashes when opening YouTube [troubleshooting guide]