If it's diarrhea, I would be worried about keeping her hydrated too which changes some things.
I'd say a senior cat formulated wet food to keep her hydrated and maybe sprinkling some pro/probiotics on it to help with their gut biome. Could possibly be from stress too so try feliway plugins.