In short, the empty window experience is easy to be accepted as long as it can explain objective facts and reflect positive value. After knowing what you did in a special period and seeing some excellent qualities in you, HR may have a good impression on you.
You must find a reasonable reason for the interval. You can say that you want to take care of the elderly, take care of the children, or want to improve your education. These will do. As long as you can tell me your schedule and your feelings during this period, it won't affect your job search. You can write down what you have learned during this time and what kind of plans you have for the workplace. When the interviewer sees that your future plans are good and you have ideas, he won't care if you have any gaps before.