Acid-reducing medicines like ranitidine are generally safe to continue for a few months when a doctor is prescribing them for GERD, so two months on its own isn't a concern. Longer use beyond that is usually fine too, but it works best when reviewed periodically rather than continued indefinitely without a follow-up.
Next Steps
Ask the prescribing doctor to review the plan now that it's been two months, since GERD treatment is often adjusted once symptoms settle, and check that lifestyle steps like smaller meals, avoiding late-night eating and raising the head of the bed are also in place.
Health Tips
Get it checked sooner if there's trouble swallowing, unintended weight loss, or black stools, since those need a direct look rather than just a medicine adjustment.