"on the coast" vs "at the coast"

I have heard on the coast and at the coast both used. I know on the coast is used more often in spoken English, but I have heard both used in different circumstances.
Thank you in advance for the information.

Hi Giovanni,

I’d go for ‘on the coast’ whereas ‘at the coast’ sounds a little bit informal/wonky to me.