Is it possible to use Kotlin with an emulator? (not a flutter app)

How to change the screen size or DPI of the emulator?