xxxxxxxxxx
const dialogRef = this.dialog.open(LoginModalComponent, {
autoFocus: false,
maxHeight: '90vh' //you can adjust the value as per your view
});
xxxxxxxxxx
import {Overlay} from '@angular/cdk/overlay';
const dialogRef = this.dialog.open(CookieDialog, {
scrollStrategy: this.overlay.scrollStrategies.noop(),
});