Tables with a lot of data for small screen sizes

It is probably not just me who finds responsive tables barely readable when using small screen devices. In most of cases they look like in example #1.

I find this way completely impractical when presenting a lot of data as it involves a lot of vertical scrolling and is often confusing.

Surely tables as in example #2 do not fit a lot of data, which becomes impractical too unless you only require a couple of columns with short input.

I wonder if anyone managed to achieve a table presentation that would provide good readability on small screen size devices?

Example #1

enter image description here

Example #2

enter image description here