Finding "Hidden" Elements by Accessibility Label

In order to make testing easier on my application, I have an element that stores all the necessary data that I need to scrape from a page. But as I don’t want this visible to the user, I have it with some styling (display: None) to make it invisible. Is there any way that I can get this element with it being invisible by searching for its accessibility ID?