The battery on my S7 Edge swelled up last year. So much so that it popped the back of the phone off and damaged my case.

I bought a replacement and installed it. The old one was swelled up like a balloon. It still actually worked, but had clearly emitted something into its envelope.