Question about performance and memory usage

Does making components invisible or not invisible effect the performance and the usage of the app so if I have things stay visible but outside the screen area does that make any difference from making them invisible…
Or is it that if a component is built it is built and it’s gonna keep taking the resources that it needs at all times

Every action you do takes some usage of cpu and memory so ofcourse if you make them invisible and then visible so it draw the component again and takes cpu and memory usage.

my question is really what if I keep everything visible just outside display borders does it consume more memory than making them invisible?