Bind widget to two elements

I’m working with the instant search library and am trying to create widgets for mobile and desktop users. Filters for mobile users will go in a slide out, while desktop users will just see it on a sidebar.

Is it possible to create one widget and bind it to two DOM elements. I’m currently creating two separate widgets and binding them to separate containers, which works, but it’s getting a bit verbose and repetitious.