How can I fix this problem on my phone?

How can I fix this problem on my phone? Last night I received a notification where it said that the browser had been infected with a virus, I ignored the warning because I have already received these notices before and they were not true because it was that the pages I entered had viruses with that type of misleading ads so I thought it was fake, but now it's infected with a virus that won't let me use the browser. How do I get rid of the virus?
Updates
+1 y
Now I can use the search engine and everything seems normal, but I wonder why the problem would have solved itself.
Is it possible that the virus is still present and just stops?
Do I take the same measurements?
Because the search engine has not worked for 24 hours and all my applications have been blocked it must be a problem but suddenly the problem solved itself.

How can I fix this problem on my phone?
Post Opinion