Poopy diapers

Every single morning my baby wakes up with a diaper FULL of poop. It always goes to his back and is super messy. Is there anything I can do to prevent it from coming out of his diaper?