Good day.
In this case, stream should be transcoded to desired resolution/bitrate.
Let's suppose you plaing the stream as WebRTC. You can check viewer channel quality at client side as described here, and, if quality is bad, stop the playing stream and request it with desired constraints...