My apologies.
It turns out that the application is extremely complex and very large. But I understand and I made a small example of what happens. It uses the ScrollView2D library. Note that after rotating the control, it is difficult to reposition it as it was, keeping only the rotated content. As much as I try to use top, left, width and height to adjust it as it was, I can't understand what happens with the coordinates, as it doesn't seem logical to me.
In practice, I want the control to stay in the same location and with the same dimensions, only its content is rotated. But when trying to reposition and resize after rotating, I get confused because I can't. I can only use negative coordinates (in the case of my app) or some number based on trial and error, but I think this works for my device but may cause problems on other screen sizes. I wanted to understand what happens to do everything correctly and not improvised!
Thank you very much!