What if table columns cannot fit on webpage?

If I've 12 - 14 columns in a table to show on a page but there's not enough space to show all columns (let's say, there's only enough space to show 7 columns of the table), what is the solution for this?
I can make the page scroll horizontally but it's ugly and the last resort.
Shrinking the font size of the table data only has rooms for 1  - 2 more columns at best.

Choosing a traditional tabular table, where each cell contains one piece of data, has advantages (easy to compare different rows) and disadvantages (lots of columns take up all your horizontal space).
Perhaps consider an alternative layout, e.g. UI cards:

Using UI cards comes with other advantages, e.g. they can expand and shrink (i.e. Show more... Show less...) to reveal additional information.