Tilt input changes when screen rotates horizontal on andriod

I have created a rolling ball game. I’ve implemented tilt going left/right and it works when in portrait mode under Android orientation in project settings. However when I change it to landscape mode which is my target for the game my tilt only works up/down and not left/right anymore. I’ve spent weeks trying to figure this out. Any advice would be very helpful!