Hi,
The issue lies with the class names because AEM uses the same names for some of their classes as Bootstrap does. For example, "container". So the best solution is to compile your own version of Bootstrap and rename the out-of-the-box (OOTB) classes
In short, you should follow this process:
- Open the SASS (LESS) sources
- Find and replace the classes you want to rename
- Compile that with a SASS / LESS compiler
You can learn more here:
https://getbootstrap.com/docs/5.3/customize/sass/
https://getbootstrap.com/docs/5.0/getting-started/build-tools/
https://getbootstrap.com/docs/5.3/customize/overview/
Hope this helps
Esteban Bustamante