Add inspect element and prevent preview from refreshing while it is hidden