Then the cmos battery is probably in a Dallas DS1287 or similar chip. There are hacks to replace the battery itself with a CR2032 holder, but it requires drilling into the chip.
I bought a DS12887+ to replace it, and socketed it in case it would need replacement again in the future (in another 30 years? :)). But if you want to go this route look up what chip is compatible with the exact one you have.
It will say “Dallas DS1287 REAL TIME” and be unusually thick for being a DIP chip.
I just remembered, there’s a third possibility for replacement if this is the problem - the nwx287, a hobbyist-made replacement chip that has a cr2032 holder.