I've seen this more than I'd like to in old phones. What happens is the electrolyte inside the cell degrades with charge cycles, temperature, and just the passage of time. That electrolyte releases gases - mainly carbon dioxide and carbon monoxide - that have nowhere to go and end up inflating the cell like a balloon. It's a natural chemical process in lithium batteries when they age or have suffered thermal stress (if you left your phone in the sun, charging for hours, or in a hot environment, it speeds everything up).
The real danger is that a swollen battery can burst, spill corrosive electrolyte, or even trigger a more aggressive reaction if it gets punctured. So no, you shouldn't keep using the phone normally. My practical advice: take the battery out if your model allows it, or at least power the phone completely off and leave it unused. Don't charge it. If you have space in a garage or a ventilated area away from flammable things, put it there for a couple of days before taking it to be recycled. A lot of people don't know that most cities have electronics collection centers where they safely dismantle batteries.