Thank you very much! The element ID is 529079, and the endpoint URL is “bestellung-erhalten”. So, this snippet goes into the functions.php
add_filter( 'generate_element_display', function( $display, $element_id ) {
if ( 529079 === $element_id && is_wc_endpoint_url( 'bestellung-erhalten' ) ) {
$display = false;
}
return $display;
}, 10, 2 );
But the element is still there (the part below the main navigation):
https://www.agoshop.de/kasse/bestellung-erhalten/
What am I missing?