MATLAB (gtk2?) has its own internal scaling factor "s" which can be set to any value, such as 1, 1.25, 1.5, 2 etc. This scales all the UI elements. The font size can also be set independently. In Wayland environment with 100% Wayland scaling on a 4K monitor, MATLAB can be configured with perfect scaling and sharp fonts simply by increasing "s", and increasing font size. In Wayland environment with 200% Wayland scaling, both the UI and fonts are blurry as Wayland adds an extra scale factor which is not needed. Launching non-standard toolkit apps with custom internal scaling mechanisms should have an option to ignore the Display scaling set in Plasma System settings. https://uk.mathworks.com/matlabcentral/answers/406956-does-matlab-support-high-dpi-screens-on-linux
There are also games like this. In the case of these apps, it's much better to use the app-internal scaling mechanism than upscaling it in the compositor.
Wrap your game in gamescope before launching. *** This bug has been marked as a duplicate of bug 389191 ***