Retrieve Data from Airtable to write in a Custom Block without them appearing elsewhere on the page

Hi,

I know it is possible to retrieve data from a visble block and use it in a Custom Block (for example to display it in a sentence) using the window.records method.

But in order for this method to work, my understanding is that the fields I’m looking for must appear somewhere else in the page (in a block).

I’m fine with that, but I would like to be able to hide those values from the details block (but let my custom block use them)

Do you know how I should proceed? I heard a few things about using CSS to hide the block, but I’m not sure how to proceed.

Thanks!