Hi,
well, the <pre>
changes the stying entirely, so that's not work the gain of that fake "responsiveness", in my opinion. But that this resembled your desired "responsiveness" was just coincidence.
Now, it might however be possible to somehow get the same behavior with different HTML/CSS around the table, but unfortunately, I don't know how that would need to look like. Sorry.
Regards,
Tobias