IMAP, POP3 are not working in inbound mail

Hello experts,
Microsoft depreciated imap and pop3 and introduced modern authentication. but my inbound mails were configured on imap and because of depreciations it’s not working.
Please suggest any method

You can just migrate affected channels to microsoft 365 channels given that the hostname configuration fits. The required steps to do so are described here:

You will still require IMAP and SMTP on the tenant.