I agree with Goldmali, look at the food, I’ve had a few people who I know that had to change their dogs food ironically they were all on different types of Royal Canin

like Goldmali said give her a bland diet of boiled chicken/Turkey and I would also add hills id prescription diet seeing as it’s bad and been going on for a while. She’ll also need a good probiotic, canikur pro paste or pro-kolin should help. Or you could use some good plain yogurt, onken bio yogurt is good but if she hasn’t had it then it may not be good to try her on it now whilst she’s still bad as some dogs don’t tolerate it. Hopefully it’s just a bad bout of diarrhoea, so many dogs have had dodgy tummies the last few weeks, 1 of mine included, not sure why? But because I gave her a probiotic and bland diet straight away it meant she was fine and back to normal within a week