System Monitor does not show application details

I am on KDE Plasma 5.27.5. When I try to open the Applications in the System Monitor I am getting the message Applications View is unsupported on your system.

I am running the application a normal user. On starting from the terminal and using sudo I get the following error message

qml: Implementation matching DESKTOP_ENVIRONMENTS was not found. ApplicationsView will not be available

Can someone please help me? Why is ApplicationsView not available? And how can it be fixed?