Apple - MacBook Pro randomly discharges from 100% to ~90% when plugged
This is normal behavior.
The key to your question is your estimation:
After some time, when it gets to 88-92%
That is right at the line (93%) where Apple estimates that charging will appear to stop. A couple of percentage points is well within the margin of error and it's safe to say it wasn't a scientific observation you were making.
From Apple Support: About Mac notebook batteries
My battery won't charge to 100%
Occasionally, the battery might not show a full charge (100%) in macOS, even after the power adapter has been connected for an extended period of time. The battery might appear to stop charging between 93 percent and 99 percent. This behavior is normal and will help to prolong the overall life of the battery.
The thing is, depending on use, it may go a little lower than 93%. Most things done with battery is done based on calculation of what's measured so 93% is a calculation. The point is, a hard 93% would not be that the demarcation of when to start charging. Like everything else, it is based on the measurement; and in this case, most likely the measurement of the remaining charge and max charge values read directly from the battery itself and not a calculation displayed by the OS.
Regarding Catalina
Catalina introduced a Battery Health Management feature and released it to the public June 1st 2020 in the 10.15.5 Update. The Support article I sourced the info from above is from May 26th, 2020 (Pre-Catalina, see image below).
Apple has a habit of not dating things or just showing you when things were updated so, took a screen grab for posterity
It's also been in the public beta for some time judging by the ample blogs/articles written about it. Now, it wouldn't be uncommon for Apple to implement a portion of the the feature (like changing the max charging limit) into earlier versions of macOS. The full "Battery Management" feature allows you the ability to control it.
This feature was introduced in macOS Catalina, on by default. Are you sure you're actually on Mojave?
It's supposed to prolong your battery life, you can disable it in Energy Saver -> Battery Health.
More info here
PS: would comment, but don't have reputation
I have a similar issue while using a MacBook Pro (15-inch, 2018) running Catalina (10.15.x). What I've discovered is that my USB dock is the problem. I am using a Sicotool dock which has several USB ports, a USB-C port, ethernet and some display ports. I have everything connected to this dock (monitor, two USB drives, ethernet, power) so I have an easier time plugging in just one cable. What I believe is happening, the dock overheats. When I notice that my laptop is no longer charging while plugged in, an unscientific test of the temperature (by touch) indicates to me that the dock has grown too hot and some how shuts off the flow of power (or maybe it's the laptop itself). What I do is unplug my USC-C power from the dock, plug it in directly to the laptop for a while and then after the dock cools down, I can return the power cable to dock. This happens about once a month for me on average.
I have also had some success with just unplugging everything from the dock, unplugging the dock from the laptop and then reconnecting everything to enable the power to flow again. Not sure if that resets any hardware/software running in the dock.