List limit for different resolution

At the moment, I hand over a list to the view. I display this List on the Website.
But if i want to shorten the list for the mobile view, it would be logical to limit the list in the controller and display the shorter list on the mobile device.

But how do i distinguish between two resolutions in the Controller, is this even possible?
Or do you recommend me to hand over two lists and choice in the view which one to pick?

I’m just not sure, which is the appropriate way.

Thanks

Assuming you have a variable $limit or such, you can use an ajax request to your controller and pass the $limit variable to get the number of products you need. Hope this helps, cheers!