I want the search icon show next to the menu button on tablet and mobile

I added a seach icon with expanding and collapsing seach bar in the nav menu. It works well on the PC breakpoint but when I switched to tablet or lower breakpoints the seach icon is shown in the dropdown menu. I want the search icon appears next to the nav menu icon.