You can force your AVD to use a custom resolution by editing its config.ini. Here’s how:
Locate your AVD folder and open config.ini
On macOS/Linux it’s usually under ~/.android/avd/:
Add or modify these lines (create them if they don’t exist):
hw.lcd.width=1080
hw.lcd.height=2340
Save and exit and restart avd