Delimited
Delimited Developer notes

Set up multiple Bootstrap popovers

Initialise each trigger and check the Bootstrap version before changing the markup.

Bootstrap 5 uses data-bs-toggle and the bootstrap.Popover constructor. Initialise each matching trigger after the markup and Bootstrap script have loaded.

document.querySelectorAll('[data-bs-toggle="popover"]').forEach(trigger => {
  bootstrap.Popover.getOrCreateInstance(trigger);
});

Bootstrap 3 used data-toggle and the jQuery plug-in. Match the code to the scripts you ship. Keep popovers brief and keep essential actions in the page or a dialog. The Bootstrap documentation explains keyboard and placement limitations.