How to resize the screen for particular app

I want to resize the screen for particular app like button1 click app will open now I don’t to resize the screen only I want to resize the app screen.


After enabling force activity to resize able in Developer option after all now I can resize the app screen manually but I want this feature on button1 click

Any idea about this :point_up:t2:??

Thank you