Toddler gagging on phlegm

Kianna 🌻

Any tips on how to get rid of phlegm? My 18 month old has been waking up during naps due to choking on a phlegmy throat and also vomited last night because of it. What to do??