It's just frozen on the pop up message and you can't switch it off?
I've had similar with an old phone, see if you can force restart it -
https://setapp.com/how-to/reset-ipad#force-restart Otherwise you may need to wait for the battery to go flat and then charge it back up, if you haven't already been through that.