بسم الله الرحمن الرحيم
(Fatwa: 814/814/M=1434)
If it is an obligatory ghusl then it is necessary to rinse the mouth fully. As per the preferred saying, gargling is not necessary but it is sunnah if one is not in the state of fasting:
قوله غسل الفم والأنف اى بدون مبالغه فيها فإنها سنة فيه (اى فى الغسل على المعتمد (طحطاوى على المراقى).
Allah knows Best!
Darul Ifta,
Darul Uloom Deoband
