@Sarika,Thanks for posting in Q&A.
From your description, I know that you encountered an issue that IOS devices are compliant in Intune while not compliant in Azure AD.
Based on my research, this was because the user did not login to the company portal app after setting up the device to "finish" the enrolment.
We suggest that login to the company portal app and sync it and please ensure the user has Azure AD premium license and Intune license assigned, restart the device and wait some time to see if the compliance status will change in Azure AD.
However, if the issue still persists, I think the issue may occur on the background when sync the status from Intune to Azure AD. Here, we suggest to open case to check in the background to help on this issue:
https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-troubleshooting-support-howto
Thanks for your understanding and hope the above information can help.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.