A baby can stay in a poopy diaper for a few minutes or so until they are finished pooping.
You should change a baby's poopy diaper as soon as you notice they have pooped as leaving the baby in a poopy diaper for too long can lead to diaper rash and infections, including a urinary tract infection, especially in baby girls.
Although if you're in a situation in which you cannot change the baby's poopy diaper right away, such as when driving, then it's okay to leave the poopy diaper on the baby until you can safely pull over somewhere to change them.
Diapers should also be changed every 1 hour to 3 hours for newborns, when wet and as soon as possible when they are poopy.
For older babies, diaper changes are often less frequent as they tend to pee less often and poop less often.
For older babies, wet diapers should be changed every 3 hours to 4 hours, but for any soiled or pooped in diapers they should be changed immediately or as soon as possible.
When changing a poopy diaper, it's good to allow at least 10 minutes to ensure that the baby or toddler has finished pooping.
This can help you avoid getting pooped on during the middle of a diaper change and prevent you from having to change the diaper again immediately after you already changed them.
For wet diapers, the baby or toddlers wet diapers should be changed every 2 to 3 hours and for older toddlers, it's usually every 3 to 4 hours, unless the diaper is full of pee sooner.
And for poop, change it immediately or as soon as possible for both babies and toddlers.
Be sure to wipe all the poop from the baby or toddler before putting a fresh diaper on.
With pee you don't always have to wipe, but it's a good idea to use at least one wipe to clean them up after a pee.