Baby turning on tummy at night

He does this and wakes himself up. What can I do to teach him to either not turn or to get used to sleeping on his tummy???

Right now I’m constantly having to go in and turn him on his side and pat his butt so he’ll go back to sleep