Currently, I am facing a dilemma with two forms that need to share the same IDs. One form is designed for mobile viewing while the other is for all other devices. Despite using media queries and display: none to toggle their visibility, both forms are still technically present on the page, resulting in functionality issues. To resolve this, I am exploring options to completely eliminate the element based on the screen size rather than just hiding it.
I am at an impasse and urgently need to complete the site migration by tonight. Any suggestions or solutions would be greatly appreciated!