Why not extend WP_List_Table? It creates responsive tables that collapse to an accordion when the table width exceeds the screen size.
See Class Reference/WP List Table.
You might take a look at the code in this plugin to get started:
Custom List Table Example