Can’t take screenshot of hovered element in Cypress

I’m trying to take a screenshot of an element in with the hover effect, but the screenshots always come out without the hover effect.

    tableListMaps.lineWithText('Hello world', 'myLine');
    cy.get('@myLine').realHover().within(() => {
      highlightElement(commonMaps.BUTTON_DOWNLOAD_INLINE);
    });
    cy.screenshot('downloadScreenshot');

If I later on come back and hover over this element, I can see what I was trying to highlight was highlighted successfully, but it wasn’t captured by the screenshot.

Is there a way I could “fixate” the hover effect?