How to set a cookie before making a screenshot?

How can I set a cookie before making a screenshot? I need to make the screenshots without the cookie disclaimers.

Hi Joe,

Handling the pop-ups would be possible in Automation testing only with the help of scripts. For manual, there is no such way, unfortunately. Taking the screenshot without those pop-ups won’t be possible because every time you launch a new test, you get a new device and we do not store any data in the devices hence, you get a fresh device every time. Because of this, we do not store any cookies or cache and hence, you get the popup.