Some individuals with a stomach virus may take this medication to help treat the diarrhea and nausea that the virus causes. However, in some cases, Pepto-Bismol may prolong a stomach virus. This is because diarrhea is the body's way of getting rid of the virus, and treating diarrhea may slow this process down.