Because not all users will have the same screen resolution, I would find this to be usual in producing a webplayer that all users will be comfortable with.
There may be an easier way, but you could certainly detect the window size (and any changes) and use SendMessage to tell Unity to change resolutions. That said, I’m sure I have some code that does this, but it’s at work, so would have to post Monday.