Truncate text based on device size?

I have to build a portal that contains many tables of data. I found I can do it successfully if I use the truncate text option. But how can I set the truncate value based on device size?

For example set to 32 characters on phones and 48 characters on tablets, etc …

Possible?

Community Page
Last updated: