1. A method comprising: receiving, at one or more processors, a request to transfer a first web content display hosted in a first container having a first document object model (DOM) tree to a second container having a second DOM tree, wherein the first web content display has a state comprising a plurality of state components; creating, in response to the request, a second web content display hosted in the second container; determining whether a first state component in the plurality of state components of the first web content display is dependent on a property of the first DOM tree associated with a host of the first web content display; upon determining that the first state component is dependent on the property of the first DOM tree associated with the host of the first web content display: adjusting, in the second web content display, the first state component according to a corresponding property of the second DOM tree; upon determining that the first state component is independent of the property of the first DOM tree associated with the host of the first web content display: copying, to the second web content display, the first state component of the first web content display; and providing an output associated with the second web content display.