iOS 27.2 was released two days ago. Try updating and see what happens. Immediately after an update your iPhone will use a considerable amount of daily battery capacity indexing, syncing data and optimizing data. The may make your device appear sluggish at times because the CPU and GPU are doing those lower level tasks.
You can help speed up the process by plugging your iPhone into a charger, connecting to WiFi and locking it before you go to bed each night for the next 7 days or so. This will allow your device to work through the night and minimize the daytime inconvenience of sluggish performance.