Issue with Rendering HTML element with Plugin Editor

Good Day Experts,

I am building plugin for autocomplete functionality (using Algolia search). Plugin requires to define empty container in HTML -

Observation : Behavior of this element (for rendering) is different when added in bubble compared to when added in normal HTML page

  1. In HTML page outside bubble :

  2. In bubble (same element has been added using Bubble Plugin editor)

Compared the HTML tags generated and found to be the same

Looking forward to have inputs/suggestion/hints to resolve this issue