InfoWindow always has a fixed size calculated before it opens. Thus, the CSS solution will not work here.
What you can try: Listening to the window resize event and reopening the info window:
google.maps.event.addDomListener(window, 'resize', function() { infowindow.open(map); });
source share