Issue whith button and raycasting when mobile is on protrait mode

when i flip my device to protrait mode the ui buttons in world space and other physics raycast don’t work well and an offset happened so when i click on a button nothing happened and some times it click another button on screen