Chosen Solution
While trying to switch off my OnePlus Nord CE 2 Lite mobile, Google Assistant is popping up. Therefore unable to restart or switch off my mobile.
Go into settings. You can change the functions of the button. Change it to power off. In settings at the top search for power button.
Setting … System settings.. power button.. select