Please help with this
You will get the option in your phone settings. Because all phones have different functionalities, So almost all phones have notification settings in the phone setting.
Go to your Settings > Notifications, scroll to Messages, then scroll down and turn off "Show In History" and this will disappeare texts on the lock screen.