You have a few options here. The best way to do this is using your config file. However you can also ask Laravel directly what the current environment is.
The config file is based on the config set in your .env and you can access it like so
// view
@if (config('app.env') === 'production')
Production text
@endif
Using Laravel directly you can do something like this
// view
@if (app()->environment() === 'production')
Production text
@endif
// Or you can do this
@if (app()->environment('production'))
Production text
@endif
I prefer to use the config option, however with the app()->environment('production') you can directly check on the correct environment.