In at least some states, detectors with replaceable batteries are now illegal.
They noisily commit suicide 10 years after you first turn them on and your response it go go buy a new detector. Which will almost certainly be a different make and model, so you’ll need to remove the baseplate from the wall and attach the new one, not simply pop off the old detector and pop on the new one.