So, looks like the issue with my iPhone X isn’t a swollen battery, just probably some deterioration of the seal between the body and screen.
Not gonna bother fixing it, though. Too much of a hassle for a phone I’ll be replacing in a couple of months anyhow.