A terrifying video has been shared by parents as a warning to others not to leave loose blankets in their baby's cot when they go to sleep.

The footage was posted by Safe Sleep For Babies on TikTok, an account that shares educational videos on safe sleep for babies under 12 months old.

It advises that parents should always follow the ABC of sleep for little ones, which stands for alone, back and crib. It says babies should always be put to sleep alone with no loose blankets or toys, placed on their backs, and be sleeping in a secure crib.

In a video which has racked up more than two million views, it claims to show real footage from a video monitor of a baby in its crib with a loose blanket.

The baby appears to pull the blanket over its face and then struggles to get it off, which it says was thankfully spotted by the parents who rushed in and removed it to keep the baby safe and well.

The baby monitor footage
It's had more than two million views

The captions read: "Do not have ANYTHING in your baby's sleep space. Thankfully this baby's parents got there in time."

One viewer commented to say: "The way baby panics just breaks my heart."

And another wrote: "Lesson learned."

NHS guidelines state that babies should sleep in a cot in the same room as their parents for the first six months.

It advices that the baby should be placed with their feet at the bottom of the cot to stop them wriggling down, with any blankets tucked in on either side and placed no high than their shoulders. Their head should be kept uncovered at all times.

The advice says: "Place your baby on their back to sleep from the very beginning for both day and night sleeps. This will reduce the risk of cot death.

"It's not as safe for babies to sleep on their side or tummy as on their back. Healthy babies placed on their backs aren't more likely to choke.

"Once your baby's old enough to roll over, there's no need to worry if they turn onto their tummy or side while sleeping."