Values in local storage must be strings and DOM elements are not strings.
You would need to serialise the data. Most applications would use JSON and store business data rather then anything that directly represents the rendered view but you could store HTML source code.
localStoragesupports only string dataidorclassof the div element and then retrieve the same and find the corresponding DOM element.