Can?t use xrander -o right

I am on a raspberry pi 4, I have a 4in touchscreen display plugged in and I am unable to use Xrandr command. I?m not sure what I did but I got it to work last night but then it wouldn?t boot this morning and I had to do a clean install. I?ve tried everything on the internet and on forums.