wole211 wrote: "The battery seems okay as it’s fully charged."
wole ~ Being fully charged is probably not an indicator of its health. ...What's the Maximum Capacity % here? Settings > Battery > Battery Health.
And shutting down can be a symptom of a battery in need of replacement:
"...The power management system determines the capability of the battery to supply this power, and manages the loads in order to maintain operations. When the operations can no longer be supported with the full capabilities of the power management system, the system will perform a shutdown to preserve these electronic components. While this shutdown is intentional from the device perspective, it may be unexpected by the user." [Source: Apple]
"Can anyone kindly suggest a lasting solution 🙏🏾"
If the battery of your iPhone 7 is the original one, replace it:
iPhone Battery & Power Repair
(Articles found by searching Apple's Knowledge Base.)
õ¿õ¬