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
๐ŸŒ
W3Schools
w3schools.com โ€บ bootstrap5 โ€บ bootstrap_modal.php
Bootstrap 5 Modal
Change the size of the modal by adding the .modal-sm class for small modals (max-width 300px), .modal-lg class for large modals (max-width 800px), or .modal-xl for extra large modals (max-width 1140px). Default is 500px max-width.
๐ŸŒ
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.
Discussions

How can I make a Bootstrap 5 modal fit image content? - Stack Overflow
So my attempted solution was to use Bootstraps container system to set different max-width size for different screen widths using col-md, col-xl ectera. But the trouble is it seems from the help that modal windows need to use their own container within the modal-body div but this isn't going ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Trying to make bootstrap modal wider - Stack Overflow
Changing from a normal sized modal to large modal made the close button not work. adding modal-xl to the modal-dialogue div fixed the problem. Thank you! 2021-07-18T16:46:24.53Z+00:00 ... If you need this solution for only few types of modals just use style="width:90%" attribute. ... Only thing would work for me. Changing 'modal-lg to modal-xl' made it smaller... 2021-01-05T13:06:53.847Z+00:00 ... Verified working with bootstrap ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Modal scaled to viewport height? - Bootstrap Studio Help - Bootstrap Studio Forum
Hi there Iโ€™m using the standard modal from Bootstrap Studio. 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 ... More on forum.bootstrapstudio.io
๐ŸŒ forum.bootstrapstudio.io
0
August 29, 2024
I am using flask and bootstrap 5.1, and I want to display a modal from the python logic at a particular time, but I have been unable to do this.
try htmx ~ Examples ~ Modal Dialogs in Bootstrap More on reddit.com
๐ŸŒ r/flask
6
0
February 9, 2025
๐ŸŒ
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.
๐ŸŒ
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.
๐ŸŒ
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.
๐ŸŒ
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
Find elsewhere
๐ŸŒ
Ordinarycoders
ordinarycoders.com โ€บ blog โ€บ article โ€บ bootstrap5-modal-cheatsheet
Bootstrap 5 Pop-up Modals: Cheat Sheet
Bootstrap modals have 6 default sizes: small, medium (default), large, extra-large, and full screen.
๐ŸŒ
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 ...
๐ŸŒ
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.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ bootstrap โ€บ bootstrap-5-modal
Bootstrap 5 Modal - GeeksforGeeks
August 20, 2024 - Default max-width of a Bootstrap modal is 500px. Bootstrap provides the option to customize the size of the Modal by using certain classes as described below:
๐ŸŒ
AdminKit
adminkit.io โ€บ docs โ€บ components โ€บ modal
Bootstrap 5 Modal | Docs & Examples | AdminKit
September 27, 2024 - These sizes kick in at certain breakpoints to avoid horizontal scrollbars on narrower viewports. Our default modal without modifier class constitutes the "medium" size modal.
๐ŸŒ
W3Schools
w3schools.com โ€บ bootstrap โ€บ bootstrap_modal.asp
Bootstrap Modal Plugin
By default, modals are medium in size. For a complete reference of all modal options, methods and events, go to our Bootstrap JS Modal Reference.
๐ŸŒ
MDBootstrap
mdbootstrap.com โ€บ standard โ€บ modal
Bootstrap Modal - free examples & tutorial
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.2 โ€บ components โ€บ modal
Modal ยท Bootstrap v5.2
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 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 ...
๐ŸŒ
cdnjs
cdnjs.com โ€บ home โ€บ libraries โ€บ bootstrap-modal-size
bootstrap-modal-size - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers
Responsive popup window sizing with Bootstrap 5. Modal width, modal height, fullscreen modal, large modal with lg & xl modal classes and more. ... https://cdnjs.cloudflare.com/ajax/libs/bootstrap-modal-size/1.0.1/bootstrap-modal-size.dark.rtl.min.css
๐ŸŒ
Studytonight
studytonight.com โ€บ bootstrap โ€บ how-to-change-the-default-width-of-bootstrap-modal-box
How to change the default width of Bootstrap modal box? - Studytonight
The modals in Bootstrap are used to add dialogs for user notification or other things. The modals come with medium default width. But we can change the default width of the modal box using Bootstrap 5.