They detect the device server side and deliver a page tailored to the device. The page is in no way responsive real time. If you pull up the page in a browser and then re-size down it gives you scrollbars instead of resizing.
A truly responsive page adjust real time, and you do that either by using percentages or scripting off of the onload and onresize events.
Both methods have their own problems.