0
I have a form with two different features, one for mobile and the other for desktop. I don’t know how to set up one to be displayed and another hidden depending on whether the site is on desktop or mobile.
Reading some answers here from the forum I tried the following:
<!-- aparecer no desktop -->
<div class="mobile-hide">
  ------------------------------------------
  <div style="position: fixed; bottom: 0; width:1170px; text-align: center;">
    <?php get_template_part('inc_booking'); ?>
  </div>
  código do 1° formulário, sem necessidade de alteração 
  ------------------------------------------
</div>
<!-- /aparecer no desktop -->
<!-- aparecer no mobile -->
<div class="mobile">
  <div class="desktop-hide">
  ------------------------------------------
    <?php get_template_part('inc_booking'); ?>
  </div>
  código do 2° formulário, sem necessidade de alteração 
  ------------------------------------------
</div>
<!-- /aparecer no mobile -->
But both versions are being presented on both desktop and mobile.
Can’t use CSS Media Queries?
– Woss
edtei the answer to meet your request in the comment. Make a test and return the result.
– user60252
If you are using Bootstrap see in that simple answer.
– Pedro Camara Junior