If you mean scaling and pixels within UI, that has nothing to do with device DPI.
Here are some notes on UI Anchoring, Scaling, CanvasScaler, etc:
Otherwise, not sure how you would set the DPI…
You can read device DPI from here: