White plays and wins in 4 moves https://lichess.org/uqW9lK8o
- Kg8 Qc4+ 2. Kf8 Qg4 3. Qf6+ Qg6 4. Qexg6#

The analysis board does checkmate in 5 moves
- Qe5 Qxe5+ 2. Qxe5 Kg6 3. Kg8 Kh6 4. Kf7 Kh7 5. Qh2#
Hiding the king made the difference.
Source:

https://www.amazon.com/Chess-Puzzles-Advanced-Expert-Level/dp/B0917YQZP1