The German site (not for a specfic Airport) only meantions your given size for the Priority offer.
Priority und 2 Handgepäckstücke
Fluggäste, die Priority und 2 Handgepäckstücke oder ein Plus-/Flexi-/Family-Ticket oder ein Flugticket für einen Anschlussflug erworben haben, dürfen ein kleines Handgepäckstück mit an Bord nehmen, das unter den Vordersitz passen muss (40 cm x 20 cm x 25 cm).
Priority-Kunden können ebenfalls ein zusätzliches 10 kg-Gepäckstück mit an Bord nehmen, das in den Gepäck-Checker passen muss (nicht mehr als 10 kg schwer und nicht größer als 55 cm x 40 cm x 20 cm) und im Gepäckfach verstaut wird.
This states that it must fit in the luggage checker.

Most articles state that RyanAir is very strict about this, so you should assume that the Luggage-Checker has been changed since 2018 when these new regulations were changed.
If you have practical experience that your piece of luggage fits in the luggage holder on board without any problems, you may be lucky that the difference will be ignored. But you should never assume this will always be the case.