It works through fluid layouts, flexible images and CSS media queries that change the arrangement at defined breakpoints. The same HTML is served to every device, which is why it is Google's recommended pattern and why it works cleanly with mobile-first indexing: there is only one version of the content to crawl. A responsive layout is not automatically a good mobile experience, though. Elements can stack into an unusable column, tap targets can end up too small, and a page can technically fit the screen while still being miserable to use.
Test your own site on an actual phone rather than by dragging a browser window. On a plumbing site, the mobile view should put the phone number and a tap to call button within the first screen, keep the form to three fields, and show service and area before any company history. Tables and wide image galleries are the usual casualties of a narrow screen. Since most urgent service searches happen on a phone, the phone layout is the real site and the desktop version is the secondary one.
Send the site over. We will tell you what is broken, what you could rank for, and whether AI search knows you exist. No charge and no pitch deck.