To achieve this function, it needs to be implemented in software to rearrange the pixel arrangement. Or you can use lvgl, for screen rotation.