Answer:
All praise is due to Allah, exalted is He, and peace and blessing be upon His Messenger.
If you properly rinse out your mouth then it will not break your fast, although it will be makruh tahrimi (severely disliked and close to haram) to do so because of the fact that you are tasting something and risking breaking the fast. One should either brush one’s teeth without toothpaste or use a natural (unscented) miswak.
And Allah knows best.
Answered by: M Ashraf Zaman