Site icon Hip-Hop Website Design and Development

Search function does not work on mobile devices

briefly about me: I took a working student job in my university with no WordPress experience (but my professor knows that). I basically maintain my professor’s website. My predecessor wrote the current theme with little to no comments.
Problem: the search function doesn’t work on mobile devices. And I have no idea why, nor for how long the problem has existed. All I can say is that when I search for blockchain on a desktop device, for example ([website]/index.php?s=blockchain&m=), a string is sent to the variable S and it is displayed. On mobile devices, the string is sent to the variable M and M is unfortunately not displayed: [website]/index.php?s=&m=blockchain
Feel free to test this out: https://norbert-pohlmann.com/

Since, as I said, I took over someone else’s work and have no idea about WordPress, I don’t know exactly how to fix the problem. My predecessor can not help me at this point, unfortunately. I also looked into the standard theme Twenty Twenty and to be honest I have no skills to even understand how the search works there. I’m so sorry.

I can show you times the search from the file header.php:

<div class="col-6 col-sm-6 col-md-6 col-lg-4 col-xl-4">

                <form class="row justify-content-end" method="get" id="searchform"
                      action="<?php echo $_SERVER['PHP_SELF']; ?>">
                    <div class=" row justify-content-end pc suche">
                        <div class="col-lg-11 col-xl-11">
                            <table>
                                <tr>
                                    <td>
                                        <input class="form-control" placeholder="Suche" type="text"
                                               value="<?php echo esc_html($s, 1); ?>" name="s" id="s"/>
                                    </td>
                                    <td>
                                        <input class="btn btn-outline-search" type="submit" id="search_submit"
                                               value="Suchen"/>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div class="justify-content-end mobile">
                        <div class="col-auto">
                
                         <table>
                                <tr>
                                    <td>
                                        <input class="form-control" placeholder="Suche" type="text"
                                               value="<?php echo esc_html($m, 1); ?>" name="m" id="m"/>
                                    </td>
                                    <td>
                                        <input class="btn btn-outline-search" type="submit" id="search_submit"
                                               value="Suche"/>
                                    </td>
                                </tr>
                            </table>
                            
                        </div>
                    </div>
              
                </form>
            </div>