Font scale difference between prebuilt and custom built ParaView.

Hi!,
The prebuild version of paraview in my ubuntu 24 is showing proper and nice looking font sizes but a custom built version of paraview on the same machine gives me a large font sizes in the UI. (see images below).


I fixed this problem by issuing a command export QT_SCALE_FACTOR=0.8 before starting paraview but I was wondering if there is an alternative solution? I am trying to avoid using the hardcoded constant value.