The single most important line for mobile is <meta name="viewport" content="width=device-width,initial-scale=1">. Without it, phones pretend to be ~980px wide and shrink your page. With it, the page uses the real device width.
From there, responsiveness is mostly CSS: flexible units, max-width on containers, and media queries that rearrange layout at breakpoints. HTML's job is to provide clean structure and the viewport tag.