In your code, for the modal-dialog div, add another class, modal-lg:

<div class="modal-dialog modal-lg">

Or if you wanna centre your modal dialog, use:

.modal-ku {
  width: 750px;
  margin: auto;
}
Answer from Praveen Kumar Purushothaman on Stack Overflow
🌐
Bootstrap
getbootstrap.com › docs › 4.2 › components › modal
Modal · Bootstrap
Embedding YouTube videos in modals requires additional JavaScript not in Bootstrap to automatically stop playback and more. See this helpful Stack Overflow post for more information. Modals have three optional sizes, available via modifier classes to be placed on a .modal-dialog.
🌐
Bootstrap
getbootstrap.com › docs › 5.0 › components › modal
Modal · Bootstrap v5.0
Embedding YouTube videos in modals requires additional JavaScript not in Bootstrap to automatically stop playback and more. See this helpful Stack Overflow post for more information. Modals have three optional sizes, available via modifier classes to be placed on a .modal-dialog.
🌐
W3Schools
w3schools.com › bootstrap5 › bootstrap_modal.php
Bootstrap 5 Modal
By default, modals are "medium" in size (500px max-width).
🌐
Bootstrap
getbootstrap.com › docs › 5.3 › components › modal
Modal · Bootstrap v5.3
Embedding YouTube videos in modals requires additional JavaScript not in Bootstrap to automatically stop playback and more. See this helpful Stack Overflow post for more information. Modals have three optional sizes, available via modifier classes to be placed on a .modal-dialog.
🌐
MDBootstrap
mdbootstrap.com › standard › modal size
Bootstrap Modal Sizing - free examples & tutorial
Responsive popup window sizing with Bootstrap 5. Modal width, modal height, fullscreen modal, large modal with lg & xl modal classes and more. Modals have three optional sizes, available via modifier classes to be placed on a .modal-dialog.
Find elsewhere
🌐
BootstrapVue
bootstrap-vue.org › docs › components › modal
Modal | Components | BootstrapVue
Modals have three optional sizes, available via the prop size. These sizes kick in at certain breakpoints to avoid horizontal scrollbars on narrower viewports.
🌐
GitHub
github.com › mdbootstrap › bootstrap-modal-size
GitHub - mdbootstrap/bootstrap-modal-size: Responsive popup window sizing with Bootstrap 5. Modal width, modal height, fullscreen modal, large modal with lg & xl modal classes and more. · GitHub
Responsive popup window sizing with Bootstrap 5. Modal width, modal height, fullscreen modal, large modal with lg & xl modal classes and more. - mdbootstrap/bootstrap-modal-size
Author   mdbootstrap
🌐
Plotly
community.plotly.com › dash python
Make Bootstrap Modal bigger than 'xl' - Dash Python - Plotly Community Forum
May 19, 2020 - Hi, I’m a Python developer but very new to Dash and HTML/CSS. I would like to have some advice on how to make the size of a Bootstrap Modal component bigger than using the attribute 'size=‘xl’. Ideally I would like to h…
🌐
React Bootstrap
react-bootstrap.netlify.app › modals
Modals | React Bootstrap
You can specify a Bootstrap large or small modal by using the size prop.
🌐
Medium
medium.com › @AlexanderObregon › understanding-and-using-bootstrap-modals-effectively-14cf13cca2d9
Understanding and Using Bootstrap Modals Effectively
April 29, 2024 - The classes modal-sm, modal-lg, and modal-xl can be added to the modal-dialog div to adjust the modal size. ... For modals with content longer than the user’s viewport, Bootstrap allows you to add a scrollbar.
🌐
Bootstrap
getbootstrap.com › docs › 4.6 › components › modal
Modal · Bootstrap v4.6
Embedding YouTube videos in modals requires additional JavaScript not in Bootstrap to automatically stop playback and more. See this helpful Stack Overflow post for more information. Modals have three optional sizes, available via modifier classes to be placed on a .modal-dialog.
🌐
Tutorial Republic
tutorialrepublic.com › faq › how-to-change-the-default-width-of-bootstrap-modal-box.php
How to Change the Default Width of Bootstrap Modal Box
... <!DOCTYPE html> <html lang="en"> ...strap.min.js"></script> <style> @media screen and (min-width: 676px) { .modal-dialog { max-width: 600px; /* New width for default modal */ } } </style> </head> <body> <div class="m-4"> <!-- Button ...
🌐
KeenThemes
preview.keenthemes.com › html › keen › docs › base › modal
Customized Bootstrap Modals by KeenThemes
var elements = Array.prototype.slice.call(document.querySelectorAll("[data-bs-stacked-modal]")); if (elements && elements.length > 0) { elements.forEach((element) => { if (element.getAttribute("data-kt-initialized") === "1") { return; } element.setAttribute("data-kt-initialized", "1"); element.addEventListener("click", function(e) { e.preventDefault(); const modalEl = document.querySelector(this.getAttribute("data-bs-stacked-modal")); if (modalEl) { const modal = new bootstrap.Modal(modalEl); modal.show(); } }); }); }
🌐
Trimble
modus-react-bootstrap.trimble.com › components › modals
Modals | Trimble Modus React Bootstrap Developer Guide
You can specify a bootstrap large or small modal by using the "size" prop.These sizes kick in at certain breakpoints to avoid horizontal scrollbars on narrower viewports.
🌐
Bootstrap Studio Forum
forum.bootstrapstudio.io › bootstrap studio help
Modal scaled to viewport height? - Bootstrap Studio Help - Bootstrap Studio Forum
August 29, 2024 - When activated the modal fades into the viewport, but alway exceeds it by approx. 10 % to the bottom. Is there a CSS way to make the modal appear not higher than the current viewport. I have tried max-height = 90vh in different ...
🌐
GeeksforGeeks
geeksforgeeks.org › bootstrap › bootstrap-5-modal-optional-sizes
Bootstrap 5 Modal Optional Sizes - GeeksforGeeks
July 23, 2025 - This is used to create different sizes modals. ... Note: If no styles are specified, it will be treated as a default modal with a width of 500px. ... Example 1: In this example, we will learn about small modals.