If you have the ability to copy commands by using the arrow keys or the texture pack on mobile, it’s tedious, but possible. You’d need to clone each column of blocks manually. I can describe how to do that if you’d like, it’s the only way I know of to rotate walls other than world edit.