The situation you described sounds unusual and potentially concerning. Here are some steps to take to ensure your device's security:
1. **Check for Unusual Apps or Files:**
- Go to [Settings > General > iPhone Storage](https://support.apple.com/en-us/HT207774) and look for any unfamiliar apps or files. Delete anything suspicious.
2. **Run a Security Scan:**
- Although iOS devices generally don’t get malware, you can use trusted apps like Malwarebytes for a security check.
3. **Update iOS:**
- Ensure your device is running the latest version of iOS. Go to [Settings > General > Software Update](https://support.apple.com/en-us/HT204204) and install any available updates.
4. **Reset Network Settings:**
- Go to [Settings > General > Reset > Reset Network Settings](https://support.apple.com/en-us/HT201415). This can help clear any network-related issues.
5. **Restart Your Device:**
- Sometimes a simple restart can resolve issues. Power off your device, wait a few seconds, and turn it back on.
6. **Check Safari Settings:**
- If you were using Safari, clear your browsing data. Go to [Settings > Safari > Clear History and Website Data](https://support.apple.com/en-us/HT201265).
If the problem persists, consider contacting Apple Support for further assistance or visit an Apple Store for a diagnostic check. For more information on security measures, you can visit [Apple's security page](https://support.apple.com/en-us/HT201222).