While watching educational videos on YouTube a video with inappropriate content showed up. As I have never seen anything like that before (knowing it is haram) it was too much for me . My heartbeat rose due to tension and I switched off my phone. Also, I have a medical problem due to which there is regular discharge although I have taken various medications. So, should I do ghusl al janabah for precautionary purpose and if I do can I do wudhu?

No need for ghusul only wudhu is required