I am trying to include bootstrap only when the short-code function executes. It gets included but it affects the other tags of the theme.
The only way I can get around this is including bootstrap globally in the plugin's primary file. It works on the front end, making the short-code execute and display output with bootstrap classes and all of the other page content is not affected by bootstrap.
But this way, these are included everywhere and this affects the back-end styles.
The problem is tied to both front and back ends. If one is fixed, the other gets broken.