Need a layout help

Hey Folks, I need help to achieve this responsive layout.

I have a 2 column layout for Desktop. left column is for Filter and right column is for Result content in repeat grid. For mobile, I want to change this layout as single and filter in popup. I have no idea how to do it without creating a one more filter section for mobile. That makes me to create filter function twice.

Desktop layout

Mobile Layout