How to change horizontal to vertical screen rotation by button

developing mobile game
so i need to change screen orientation by button
horizontal to vertical screen by button
how to do that?
image

so no one knows about it?

any solutions?