Adapt the design of tables to their length and content.
In that case allow the users to scroll but keep the labels always visible.
But if your table is very long (finance, pro data) avoid cells.
If you have any research evidence, that this tip does not work in specific conditions, please share it with us. We will expand the database with that particular case to grow the collective knowledge together.