It can go straight but you can’t then get the nut on because the thread part literally hits the corner of the toilet. But once you angle it you can get it on. Maybe the other way is to lift it up
Slightly so I can screw the nut in and then once it’s screwed half way up then push the valve fully...