How do I add a song to a running playlist without the song I'mm listening to stopping?

This weekend we had a party and wanted to pick songs and add to a playlist. but as we would pick songs and add to the current running playlist, it would stop the current song and instantly start playing the new song instead of adding it to “Up Next”. Any help would be greatly appreciated. We were picking from a web browser on an iPhone 10s