Here's a piece of code I use to adjust the size of the Google Map container:
var myMap = document.getElementById('googleMap');
myMap.classList.toggle('fullscreen');
And here is the corresponding CSS:
.fullscreen {
width: 100% !important;
height: 100% !important;
overflow: visible !important;
}
Everything seems to be working fine, but there is one issue - a part of the map is hidden on the right side.