baby congested

my son is 5 months old he’s been waking up in the middle of the night for like 2 months already he’s fine during the day ! literally never happens in the day time only at night because his nose gets clogged. i’ve tried literally everything to prevent it. idk what to do anymore. so i’m thinking maybe change his formula ?? what do you guys think ?? it only happens at night time and i’m so tired of waking up to him crying because he can’t breathe out of his nose