Hi. Did you learn Bootstrap 5 doc? In Botstrap 5 the data attributes have changed for interactive components from data-toggle
to data-bs-toggle
. If you use outdated data attributes, you just need to be replaced with new ones.
Theoretically, you can install Bootstrap 4 if you rename all bootstrap 5 CSS and JS files and add the connection of Bootstrap 4 through the custom template fields. But I do not know what it will lead to. And updating the template will erase all changes. Therefore, you better deal with the working capacity of your components based on Bootstrap 5.