Nowadays, microcontrollers with larger amounts of RAM have gotten cheaper. But keys pushing 4-5K are probably still a problem for very low-end devices.
But longer public keys require more internet bandwidth, and beyond that also increase hardware (especially RAM) requirements for load balancers, edge proxies,... multiplied by all web traffic globally that gets pretty expensive.