How thermal stress alters the confinement of polymers vitrificated in nanopores.