iPhone XR taking screenshot and shutdown

Hello recently my phone start doing annoying thing like when I’m trying to get a screen shot my screen goes black and I need to put it in the charge to open again is like turning off don’t know and I can’t power it up from the button I have to put it in the charge , any solution?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0

crwdns2944067:02crwdne2944067:0:

When you plug it back in, it has to power all the way up again? Or it just signals the screen to come back on again?

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

All the way up again I see the Apple logo etc

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0