A. Ensure that your iPhone is updated to the latest iOS version. Go to Settings > General > Software Update and install any available updates, as these can fix bugs related to PiP mode.
B. Try disabling and re-enabling Picture-in-Picture mode. Go to Settings > General > Picture in Picture and toggle it off, then back on. This can reset the functionality.