How to create “Navbar Search Plugin” like for “AdminLTE v2.4”?

I’m using an old Laravel Application that uses “AdminLTE v2.4“. Then, I want to add “Navbar Search Plugin” (https://adminlte.io/docs/3.1/javascript/navbar-search.html) that you can see on this screenshot: https://imgur.com/a/ghQIFxz.

But I noticed that plugin is only available for “AdminLTE v3”.

So, is there any way to add that “Toggle” Search Form especially in responsive design (that support any screen: tablet and mobile) like “Navbar Search Plugin” is in “AdminLTE v3” in pure JavaScript ?

If so, can you please help me to reproduce the same “Navbar Search Plugin” for my “AdminLTE v2.4” so that it displays correctly on any tablet and mobile ???

Thanks for helping me.