Questions about dividends stocks

How viable is a strategy of rotating dividend paying stocks based on their ex-dividend date? In other words, buying up shares just before said ex-dividend date, receiving the dividend, then selling and moving to buy another stock just before its ex-dividend date, especially with a no-commission app. Is this viable or am I missing something?

The main argument against it I found on investopedia is the commission fee associated, with that removed, I would speculate it would be worthwhile. I imagine a jump in stock price between when the dividend is announced and paid out, followed by it moving down a bit shortly afterward.