Give this a try. I don't know if you'll also need to rotate the screen using software, but at least you'll get the right vertical resolution. Go into the layout folder that you plan to use, open the .lay file with notepad. The first couple of lines dictate the resolution, refresh rate, and color depth. So if it says something like this:
368
240
0
With 368 being the horizontal res, just flip it so that it matches this
240
368
0
And that should display the correct resolution!