when you have a larg table must DataTabe plugin not work correctly
By simple Javascript Code you can hide empty columns asap . you can set this code in page load
I use bootstrap only for better UI Only
use simple js code function to hide empty columns from table and convert to DataTable
JavaScript