<% if options[:default_css] %>
  <%= render partial: "stripe/elements_css" %>
<% end %>

<%= form_tag submit_path do %>
  <div class="form-row">
    <%= label_tag :card_element, options[:label_text] %>
    <div id="card-element"><!-- A Stripe Element will be inserted here. --></div>
    <%= submit_tag options[:submit_button_text] %>
  </div>
<% end %>

<% if options[:default_js] %>
  <%= render partial: "stripe/elements_js", locals: { stripe_public_key: stripe_public_key } %>
<% end %>

<% if options[:default_css] %>
  <%= render partial: "stripe/elements_css" %>
<% end %>

<div id="stripe-form">
  <%= form_tag submit_path do %>
    <%= label_tag :card_element, options[:label_text] %>
    <div id="card-element"><!-- A Stripe Element will be inserted here. --></div>
    <%= submit_tag options[:submit_button_text] %>
  <% end %>
</div>

<% if options[:default_js] %>
  <%= render partial: "stripe/elements_js", locals: { stripe_public_key: stripe_public_key } %>
<% end %>

Add wrapper div with id
Add wrapper div with id
