Puppy has diarrhea

Me

My 5 month old puppy has been having diarrhea that mainly started when I put him on a new food so I stopped it. He’s still having diarrhea though and I saw that I can withhold food for 24 hours and then do a bland diet but I didn’t feel comfortable not feeding him for that long with him being so young. I didn’t feed him this morning so he hasn’t had anything since 7 last night would it be okay to go ahead and start the bland diet or just stick to the 24 hours?