You can update your PS5 controller through an on-screen prompt, but if you miss it, there's a manual workaround.
You can update your Xbox One controller wirelessly, using a USB with the console, or using a PC to receive firmware improvements.