Are 82°C to 98°C Temperatures extreme for a MacBook Pro?

I'm assuming you have the Mid 2018 15" MacBook Pro with the Intel i7-8850H CPU. This CPU has a maximum junction temperature of 100°C.

That means that hitting 82°C while browsing or 98°C while gaming isn't a problem in itself. You're within the limits in the specification.

So unless you're actually experiencing some other kind of related problem besides that you think it is a high number, then there's really no issue at all - nothing to be worried about.