is there a way to rotate layouts?

I’m sorry if this is a silly question, but i just can’t find a way to rotate a layout… I can’t even insert it into a group and rotate the group, so I’m quite at a loss. I would like to achieve something similar to the NOT LAYOUT button, but with a layout, since i need this button to be responsive to the text. Any ideas?