Issue in ios mobile browser when changing orientation with keypad opening

When I try to change the orientation form portrait to landscape with keypad open in ios mobile browser I am getting black screen under the keypad and when I change the orientation from landscape to portrait that black screen is appearing on the side