Wallpaper size in app when opening app in Samsung Dex

The app functions as normal when opening in Samsung Dex. However the windows size is wrong. The app grabs the dimensions of the monitor instead of screen size of the mobile. Therefor the wallpaper will only show the top part of the wallpaper in the dimension of the sceen, making it unable to work in the middle to lower part of the wallpaper.