How do I set my game resolution to 320x240 and fps cap at 30?

It works in standalone, any way to make it show up in preview viewport too?