If your iPhone won't turn off the usual way, you can force restart it with a button combination specific to your iPhone model.
If a particular app on your iPhone is bothering you with notifications, you can turn them off or limit how and where it ...